Initial commit
This commit is contained in:
commit
5fe082b8f6
33 changed files with 1177 additions and 0 deletions
19
roles/newsreader/templates/gunicorn.j2
Normal file
19
roles/newsreader/templates/gunicorn.j2
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# {{ 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
|
||||
Reference in a new issue