diff --git a/readme.md b/readme.md index 8c3f49f63d5d9099ca3897b266f19583cf31f2b6..4c8ea55c946c93517a32ba9c813c6e3977719811 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 ```