Skip to content

Instantly share code, notes, and snippets.

@shudarshon
Created July 7, 2017 17:24
Show Gist options
  • Save shudarshon/9f3e2ea10371054a7d2608f2c1c7ac81 to your computer and use it in GitHub Desktop.
Save shudarshon/9f3e2ea10371054a7d2608f2c1c7ac81 to your computer and use it in GitHub Desktop.
This is a supervisor script for application server UWSGI which serves django applications.
[program:uwsgi]
command=/home/ubuntu/virtualenv/app/bin/uwsgi --http 0.0.0.0:8000 -b 65535 --chdir /home/ubuntu/app --wsgi-file /home/ubuntu/app/appdir/wsgi.py --virtualenv /home/ubuntu/virtualenv/app
user=ubuntu
numprocs=1
stdout_logfile=/var/log/uwsgi/access.log
stderr_logfile=/var/log/uwsgi/error.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=300
killasgroup=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment