Move to simpler file structure
This commit is contained in:
parent
fe72523a5a
commit
d71a28e1c8
33 changed files with 374 additions and 406 deletions
19
templates/gunicorn.j2
Normal file
19
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