From beb060bf632d17434460322ca771f3bf55bfc1cc Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Thu, 17 Sep 2015 15:41:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=A5=E5=BF=97=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dockerfiles/oj_web_server/gunicorn.conf | 6 +++--- dockerfiles/oj_web_server/mq.conf | 6 +++--- dockerfiles/oj_web_server/supervisord.conf | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dockerfiles/oj_web_server/gunicorn.conf b/dockerfiles/oj_web_server/gunicorn.conf index 1d784cd..60dcce1 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 0460cba..9dbce3e 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 1494d7c..12b36be 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