19 lines
450 B
Django/Jinja
19 lines
450 B
Django/Jinja
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
|
#
|
|
[Unit]
|
|
Description=Gunicorn daemon
|
|
Requires=gunicorn.socket
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=newsreader
|
|
Group=www-data
|
|
EnvironmentFile={{ app_dir }}/.env
|
|
WorkingDirectory={{ app_dir }}/src
|
|
ExecStart={{ app_dir }}/.venv/bin/gunicorn \
|
|
--workers 3 \
|
|
--bind unix:/run/gunicorn.sock \
|
|
newsreader.wsgi:application
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|