I've been having a lot of fun developing my Whirlwind app locally and
am ready to move my app over to my VPS. I have configured nginx as per
the Tornado docs and I am trying to use the provided /etc/init.d/
whirlwind script to start/stop the instances but seem to be having
trouble.
app settings - first off, should anything change in my app's config/
settings.py?
/etc/whirlwind.conf - I have modified the path to point to my app's
location
/etc/init.d/whirlwind - I had to create a /var/run/whirlwind directory
as well as /var/log/whirlwind
When I run "whirlwind start" I get the following output:
Starting whirlwind daemon:
on port: 8000 ...done.
on port: 8001 ...done.
on port: 8002 ...done.
on port: 8003 ...done.
When I try to access the page in a browser, I get 502 Bad Gateway
message from nginx. If I try to access
page.address.com:8000 in a
browser I get nothing. If I view the nginx log I have:
[error] 2352#0: *20 connect() failed (111: Connection refused) while
connecting to upstream, ... upstream: "
http://127.0.0.1:8003/"...
[error] 2352#0: *20 connect() failed (111: Connection refused) while
connecting to upstream, ... upstream: "
http://127.0.0.1:8000/"...
[error] 2352#0: *20 connect() failed (111: Connection refused) while
connecting to upstream, ... upstream: "
http://127.0.0.1:8001/"...
[error] 2352#0: *20 connect() failed (111: Connection refused) while
connecting to upstream, ... upstream: "
http://127.0.0.1:8002/"...
If I try to run "whirlwind stop" I get the following output:
Stopping whirlwind daemon:
start-stop-daemon: warning: failed to kill 2519: No such process
whirlwind 8000.
start-stop-daemon: warning: failed to kill 2527: No such process
whirlwind 8001.
start-stop-daemon: warning: failed to kill 2535: No such process
whirlwind 8002.
start-stop-daemon: warning: failed to kill 2543: No such process
whirlwind 8003.
If I run the server from the command line, I can successfully access
page.address.com:8000 in a browser. I can also access the page without
the port but no static files get served.
Any help wold be greatly appreciated.