From 46fc31dcb47f420206c50d31ffb778a782df1ba7 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Fri, 31 Aug 2018 16:49:20 +0200 Subject: [PATCH] gunicorn service config file updated --- readme.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 8c3f49f6..4c8ea55c 100644 --- a/readme.md +++ b/readme.md @@ -56,7 +56,7 @@ User=www-data Group=www-data WorkingDirectory=/var/www/scheduling-system/smash -ExecStart=/var/www/scheduling-system/env/bin/gunicorn --pid /run/gunicorn/pid smash.wsgi --limit-request-line 8192 +ExecStart=/var/www/scheduling-system/env/bin/gunicorn --pid /run/gunicorn/pid smash.wsgi --error-logfile /var/log/gunicorn.log --log-level DEBUG --capture-output --limit-request-line 8192 ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID PrivateTmp=true @@ -64,6 +64,13 @@ PrivateTmp=true [Install] WantedBy=multi-user.target ``` + +Don't forget to change ownership of `/run/gunicorn/` folder and `/var/log/gunicorn.log` file. +``` +chown -R www-data:www-data /run/gunicorn/ +touch /var/log/gunicorn.log +chown www-data:www-data /var/log/gunicorn.log +``` ### /etc/systemd/system/gunicorn.socket ``` -- GitLab