Handle undefined variable

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2020-11-30 14:50:03 +01:00
parent 041be0be23
commit e347b9ce1c
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ spec:
value: "deploy.wsgi"
- name: APP_CONFIG
value: "/etc/noggin/gunicorn.conf.py"
{% if subdir %}
{% if subdir is defined %}
- name: SCRIPT_NAME
value: "{{ subdir }}"
{% endif %}

View file

@ -7,7 +7,7 @@ def from_file(path):
return open(path, 'r').read().strip()
{% if subdir %}
{% if subdir is defined %}
# Deployed to a subpath
APPLICATION_ROOT = '{{ subdir }}/'
{% endif %}