18 lines
441 B
Desktop File
18 lines
441 B
Desktop File
[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 |