使用 superivisord 启动进程
This commit is contained in:
16
dockerfiles/oj_web_server/gunicorn.conf
Normal file
16
dockerfiles/oj_web_server/gunicorn.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
[program:gunicorn]
|
||||
|
||||
command=gunicorn oj.wsgi:application -b 0.0.0.0:8080 --reload
|
||||
|
||||
directory=/root/qduoj/
|
||||
user=root
|
||||
numprocs=1
|
||||
stdout_logfile=/root/log/gunicorn.log
|
||||
stderr_logfile=/root/log/gunicorn.log
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startsecs=5
|
||||
|
||||
stopwaitsecs = 6
|
||||
|
||||
killasgroup=true
|
||||
Reference in New Issue
Block a user