mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
deploy: Add Ansible deployment scripts
This commit is contained in:
18
roles/webserver/templates/uwsgi-site.j2
Normal file
18
roles/webserver/templates/uwsgi-site.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
[uwsgi]
|
||||
project = {{ project_name }}
|
||||
uid = {{ web_user }}
|
||||
base = /var/www
|
||||
|
||||
chdir = %(base)/%(project)
|
||||
home = {{ venv_dir }}
|
||||
module = {{ project_full_name }}.wsgi:application
|
||||
logto = %(chdir)/%(project).log
|
||||
|
||||
master = true
|
||||
processes = 2
|
||||
listen = 128
|
||||
|
||||
socket = /run/uwsgi/%(project).sock
|
||||
chown-socket = %(uid):{{ web_group }}
|
||||
chmod-socket = 660
|
||||
vacuum = true
|
||||
Reference in New Issue
Block a user