-
Notifications
You must be signed in to change notification settings - Fork 19
Production Setup
Good advice for production setup can be found here: http://www.tornadoweb.org/documentation%23running-tornado-in-production
We recommend running whirlwind behind nginx.
One thing that gets a bit annoying with running tornado apps is starting up all the instances that your load balancer will to proxy too. There are bunch of approaches that people have come up with. Most of which are overcomplicated. So we created an init.d script that should help with this. Look here https://github.com/trendrr/whirlwind/tree/master/etc. Basically you have a config file that lives in etc. This defines the ports you want to start whirlwind instances on and then a start up script that lives in your /etc/init.d directory. Then its a simple matter of:
/etc/init.d/whirlwind start
/etc/init.d/whirlwind restart
/etc/init.d/whirlwind stop
Please note that this will not work on windows.