Skip to content

Instantly share code, notes, and snippets.

@prydie
Created July 29, 2014 11:22
Show Gist options
  • Select an option

  • Save prydie/aa32545ccdcd59aa10e1 to your computer and use it in GitHub Desktop.

Select an option

Save prydie/aa32545ccdcd59aa10e1 to your computer and use it in GitHub Desktop.
Supervisor and uWSGI
[program:myapp]
autostart = true
user = myapp
command = /srv/myapp/env/bin/uwsgi --ini /srv/myapp/run/uwsgi.ini
directory=/srv/myapp
priority = 1
redirect_stderr = true
stdout_logfile = /srv/myapp/log/wsgi.log
stopsignal = QUIT
[uwsgi]
chdir=/srv/myapp
module=wsgi:application
socket=/srv/myapp/run/wsgi.sock
master=True
pidfile=/tmp/myapp.pid
vacuum=True
max-requests=5000
processes=5
home=/srv/myapp/env
http-websockets=True
gid=www-data
chmod-socket=666
need-app=True
thunder-lock=True
gevent=100
gevent-monkey-patch=True
log-maxsize=10M
disable-logging=True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment