diff --git a/dockerfiles/oj_web_server/gunicorn.conf b/dockerfiles/oj_web_server/gunicorn.conf index 1d784cd6..60dcce12 100644 --- a/dockerfiles/oj_web_server/gunicorn.conf +++ b/dockerfiles/oj_web_server/gunicorn.conf @@ -2,11 +2,11 @@ command=gunicorn oj.wsgi:application -b 0.0.0.0:8080 --reload -directory=/root/qduoj/ +directory=/code/qduoj/ user=root numprocs=1 -stdout_logfile=/root/log/gunicorn.log -stderr_logfile=/root/log/gunicorn.log +stdout_logfile=/code/log/gunicorn.log +stderr_logfile=/code/log/gunicorn.log autostart=true autorestart=true startsecs=5 diff --git a/dockerfiles/oj_web_server/mq.conf b/dockerfiles/oj_web_server/mq.conf index 0460cba8..9dbce3e4 100644 --- a/dockerfiles/oj_web_server/mq.conf +++ b/dockerfiles/oj_web_server/mq.conf @@ -2,11 +2,11 @@ command=python manage.py runscript mq -directory=/root/qduoj/ +directory=/code/qduoj/ user=root numprocs=1 -stdout_logfile=/root/log/mq.log -stderr_logfile=/root/log/mq.log +stdout_logfile=/code/log/mq.log +stderr_logfile=/code/log/mq.log autostart=true autorestart=true startsecs=5 diff --git a/dockerfiles/oj_web_server/supervisord.conf b/dockerfiles/oj_web_server/supervisord.conf index 1494d7cd..12b36bef 100644 --- a/dockerfiles/oj_web_server/supervisord.conf +++ b/dockerfiles/oj_web_server/supervisord.conf @@ -2,16 +2,16 @@ file=/tmp/supervisor.sock ; path to your socket file [supervisord] -logfile=/root/log/supervisord.log ; supervisord log file +logfile=/code/log/supervisord.log ; supervisord log file logfile_maxbytes=50MB ; maximum size of logfile before rotation logfile_backups=10 ; number of backed up logfiles loglevel=info ; info, debug, warn, trace -pidfile=/root/log/supervisord.pid ; pidfile location +pidfile=/code/log/supervisord.pid ; pidfile location nodaemon=false ; run supervisord as a daemon minfds=1024 ; number of startup file descriptors minprocs=200 ; number of process descriptors user=root ; default user -childlogdir=/root/log/ ; where child log files will live +childlogdir=/code/log/ ; where child log files will live [rpcinterface:supervisor] @@ -23,4 +23,4 @@ serverurl=unix:///tmp/supervisor.sock ; use unix:// schem for a unix sockets. [include] -files=*.conf \ No newline at end of file +files=gunicorn.conf mq.conf \ No newline at end of file