From a73453817014ebff6842e20d26451b8a5f8e4b7c Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 20 May 2018 07:50:36 -0400 Subject: [PATCH] Dump the gunicorn and redis logs to the console. Signed-off-by: Roberto Rosario --- docker/etc/supervisor/mayan.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/etc/supervisor/mayan.conf b/docker/etc/supervisor/mayan.conf index 7ad51d2485..b1992890ad 100644 --- a/docker/etc/supervisor/mayan.conf +++ b/docker/etc/supervisor/mayan.conf @@ -3,12 +3,20 @@ autorestart = false autostart = true command = /bin/bash -c "cd ${MAYAN_PYTHON_DIR}; gunicorn -w ${MAYAN_GUNICORN_WORKERS} mayan.wsgi --max-requests 500 --max-requests-jitter 50 --worker-class gevent --bind 0.0.0.0:8000 --env DJANGO_SETTINGS_MODULE=${MAYAN_SETTINGS_FILE}" redirect_stderr = true +stderr_logfile = /dev/fd/2 +stderr_logfile_maxbytes = 0 +stdout_logfile = /dev/fd/1 +stdout_logfile_maxbytes = 0 user = mayan [program:redis] autorestart = false autostart = true command = /bin/bash -c "if [ ${MAYAN_BROKER_URL} == ${MAYAN_DEFAULT_BROKER_URL} ] && [ ${MAYAN_CELERY_RESULT_BACKEND} == ${MAYAN_DEFAULT_CELERY_RESULT_BACKEND} ];then /usr/bin/redis-server /etc/redis/;fi" +stderr_logfile = /dev/fd/2 +stderr_logfile_maxbytes = 0 +stdout_logfile = /dev/fd/1 +stdout_logfile_maxbytes = 0 user = root [program:mayan-worker-fast]