Skip to content
Snippets Groups Projects
Commit 46fc31dc authored by Piotr Gawron's avatar Piotr Gawron
Browse files

gunicorn service config file updated

parent 14950002
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment