Complete recipes page
This commit is contained in:
18
one_trip_api/gunicorn.service
Normal file
18
one_trip_api/gunicorn.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=gunicorn daemon
|
||||
Requires=gunicorn.socket
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=django
|
||||
Group=www-data
|
||||
Environment="DJANGO_RELEASE=True"
|
||||
WorkingDirectory=/opt/django/OneTrip/one_trip_api
|
||||
ExecStart=/opt/django/OneTrip/one_trip_api/venv/bin/gunicorn \
|
||||
--access-logfile - \
|
||||
--workers 3 \
|
||||
--bind unix:/run/gunicorn.sock \
|
||||
one_trip_api.wsgi:application
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user