Refactor
This commit is contained in:
14
defaults/gunicorn.service
Normal file
14
defaults/gunicorn.service
Normal 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
|
||||
Reference in New Issue
Block a user