adding the service files and and a script to gather them
This commit is contained in:
18
systemd/prod_dta_wsgi.service
Normal file
18
systemd/prod_dta_wsgi.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Prod Ditch The Agent WSGI daemon
|
||||
Requires=prod_dta_wsgi.socket
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=westfarn
|
||||
Group=www-data
|
||||
WorkingDirectory=/home/westfarn/Documents/django_live_sites/prod_dta_backend/dta_service
|
||||
ExecStart=/home/westfarn/Documents/django_live_sites/prod_dta_backend/venv/bin/gunicorn \
|
||||
--access-logfile - \
|
||||
--workers 3 \
|
||||
--bind unix:/run/prod_dta_wsgi.sock \
|
||||
dta_service.wsgi:application
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user