Last active
December 19, 2019 17:23
-
-
Save lawvs/6cf489d43acfaf4843516c7394e530fe to your computer and use it in GitHub Desktop.
supervisor conf
This file contains 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
# 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 |
This file contains 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
#!/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