Created
January 6, 2013 18:33
-
-
Save barrysteyn/4469288 to your computer and use it in GitHub Desktop.
Using Python with a VirtualEnv in Upstart
This file contains 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
start on runlevel [2345] | |
stop on runlevel [06] | |
setuid devuser | |
setgid devuser | |
exec /usr/local/bin/uwsgi --master --socket 127.0.0.1:3031 --pythonpath "/home/dev/python-script" --file "/home/dev/python-script/script.py" --callable app --processes 20 --virtualenv "/home/dev/.virtualenvs/python-script" --enable-threads | |
start on startup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment