This commit is contained in:
Sebastien Laithier
2022-08-18 10:19:10 +02:00
parent 323f0c840e
commit 31fa8f3e9c
106 changed files with 61 additions and 367 deletions

14
defaults/gunicorn.service Normal file
View File

@@ -0,0 +1,14 @@
[Unit]
Description=gunicorn daemon
After=network.target
[Service]
User=www-updash
Group=www-data
WorkingDirectory=<PROJECT PATH>
ExecStart=<VIRTUAL ENV PATH>/bin/gunicorn --workers 3 --timeout 300 --error-logfile <LOG PATH>/gunicorn.log --bind unix:<PROJECT PATH>updatesdashboard.sock updatesdashboard.wsgi:application
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
[Install]
WantedBy=multi-user.target