2020-04-25 10:22:22 +02:00
|
|
|
[supervisord]
|
|
|
|
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
|
|
|
|
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
|
|
|
|
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
|
|
|
|
loglevel=info ; (log level;default info; others: debug,warn,trace)
|
|
|
|
nodaemon=true ; (start in foreground if true;default false)
|
|
|
|
user=root
|
|
|
|
|
|
|
|
[program:gunicorn]
|
|
|
|
directory=/app
|
2021-10-31 12:56:02 +01:00
|
|
|
command=/usr/local/bin/gunicorn -w 4 --bind 0.0.0.0:8000 portier.wsgi
|
2020-04-25 10:22:22 +02:00
|
|
|
autostart=true
|
|
|
|
autorestart=true
|
|
|
|
priority=5
|
|
|
|
stdout_events_enabled=true
|
|
|
|
stderr_events_enabled=true
|
|
|
|
stderr_logfile=/dev/stderr
|
|
|
|
stderr_logfile_maxbytes=0
|
|
|
|
stdout_logfile=/dev/stdout
|
|
|
|
stdout_logfile_maxbytes=0
|
|
|
|
user=portier
|
|
|
|
|
|
|
|
[program:nginx]
|
|
|
|
command=/usr/sbin/nginx -g 'pid /tmp/nginx.pid; daemon off;'
|
|
|
|
autostart=true
|
|
|
|
autorestart=true
|
|
|
|
priority=10
|
|
|
|
stdout_events_enabled=true
|
|
|
|
stderr_events_enabled=true
|
|
|
|
stderr_logfile=/dev/stderr
|
|
|
|
stderr_logfile_maxbytes=0
|
|
|
|
stdout_logfile=/dev/stdout
|
|
|
|
stdout_logfile_maxbytes=0
|