Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Minimal supervisor config file for gunicorn
; Minimal sample supervisor config file.
;
; For more information on the config file, please see:
; http://supervisord.org/configuration.html
[inet_http_server]
port=127.0.0.1:9001
username=user
password=password
[supervisord]
logfile=/tmp/supervisord.log
pidfile=/tmp/supervisord.pid
[supervisorctl]
serverurl=http://127.0.0.1:9001
username=user
password=password
[program:gunicorn]
command=gunicorn app:app -w 4 -b 127.0.0.1:5000
directory=/working/directory/
autorestart=true
redirect_stderr=true
stdout_logfile=/var/log/gunicorn.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.