-
-
Save bobohb/8c3ecfd5351c6aaf63d91f24b837fdfe to your computer and use it in GitHub Desktop.
Supervisor and uWSGI
This file contains hidden or 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
| [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 |
This file contains hidden or 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
| [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