Created
April 5, 2016 01:25
-
-
Save respondcreate/e8e3c04b65450abe5589fc085ef0ea58 to your computer and use it in GitHub Desktop.
Upstart .conf file example. Stored in /etc/init/myproject.conf. (https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-14-04)
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
description "Gunicorn application server running myproject" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
setuid median | |
setgid www-data | |
env PATH=/home/user/myproject/ENV/bin | |
chdir /home/user/myproject | |
exec gunicorn --workers 3 --bind unix:myproject.sock -m 007 wsgi:app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment