Skip to content

Instantly share code, notes, and snippets.

@lawvs
Last active December 19, 2019 17:23
Show Gist options
  • Save lawvs/6cf489d43acfaf4843516c7394e530fe to your computer and use it in GitHub Desktop.
Save lawvs/6cf489d43acfaf4843516c7394e530fe to your computer and use it in GitHub Desktop.
supervisor conf
# http://supervisord.org/
# /etc/supervisor/conf.d/app.conf
[program:app]
command=/opt/app/venv/bin/gunicorn -k gevent -w 8 -b 0.0.0.0:8080 run:app
directory=/opt/app
autostart=true
autorestart=true
user=nobody
redirect_stderr=true
stderr_logfile=/opt/app/error.log
stdout_logfile=/opt/app/log.log
#!/bin/bash
supervisorctl reread
supervisorctl update
supervisorctl start app
supervisorctl status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment