Skip to content

Instantly share code, notes, and snippets.

@wong2
Created December 9, 2014 05:56
Show Gist options
  • Select an option

  • Save wong2/70f5a248718b5f7f18c9 to your computer and use it in GitHub Desktop.

Select an option

Save wong2/70f5a248718b5f7f18c9 to your computer and use it in GitHub Desktop.
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