Add environment variables to the supervisord configuration when you need them.
This commit is contained in:
parent
9aacfd80f8
commit
dc9616d990
|
@ -1,4 +1,3 @@
|
|||
; UWSGI for {{ nsbase_app_name }}
|
||||
[program:{{ nsbase_app_service_name }}]
|
||||
user={{ nsbase_web_server_group }}
|
||||
directory={{ nsbase_app_root_path }}
|
||||
|
@ -8,3 +7,7 @@ stdout_logfile = {{ nsbase_web_root_path }}/logs/supervisor/{{ nsbase_app_name }
|
|||
stdout_logfile_backups = 5
|
||||
stderr_logfile = {{ nsbase_web_root_path }}/logs/supervisor/{{ nsbase_app_name }}-error.log
|
||||
stderr_logfile_backups = 5
|
||||
|
||||
{% if nsbase_app_env is defined %}
|
||||
environment={% for env_var, env_value in nsbase_app_env.items() %}{{ env_var | upper }}="{{ env_value }}",{% endfor %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue