Files @ b757d690af42
Branch filter:

Location: majic-ansible-roles/roles/wsgi_website/templates/supervisor_site.conf.j2

branko
MAR-75: Implemented support for specifying additional environment variables for the wsgi_website role. Environment is set-up for both the systemd service and for application admin user. Updated testsite implementation to use it for sample WSGI website.
[program:{{ fqdn }}]
command={{ home }}/virtualenv/bin/gunicorn --bind unix:/var/run/wsgi/{{ fqdn }}/socket {% if use_paste %}--paste{% endif %} {{ wsgi_application }}
directory={{ home }}/code
user={{ user }}
group={{ user }}
autostart=true
autorestart=true
umask=0007
redirect_stderr=true
environment=HOME="{{ home }}"