Created
February 15, 2013 15:53
-
-
Save jeremyjbowers/4961259 to your computer and use it in GitHub Desktop.
My favorite (current) uwsgi config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| description "uWSGI server for APP_NAME" | |
| start on runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| env ENV_THINGY=my_env | |
| script | |
| /usr/local/bin/uwsgi \ | |
| --virtualenv /home/ubuntu/apps/APP_NAME/virtualenv \ | |
| --chdir /home/ubuntu/apps/APP_NAME/repository \ | |
| --file APP.py \ | |
| --touch-reload /home/ubuntu/apps/APP_NAME/repository/APP.py \ | |
| --callable app \ | |
| --logto /var/log/uwsgi.log \ | |
| --die-on-term \ | |
| -p 1 \ | |
| -s :9000 | |
| end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment