Handle undefined variable
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
041be0be23
commit
e347b9ce1c
2 changed files with 2 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue