Skip to content

Instantly share code, notes, and snippets.

@bobohb
Forked from prydie/myapp.conf
Created July 4, 2017 08:30
Show Gist options
  • Select an option

  • Save bobohb/8c3ecfd5351c6aaf63d91f24b837fdfe to your computer and use it in GitHub Desktop.

Select an option

Save bobohb/8c3ecfd5351c6aaf63d91f24b837fdfe 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