diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/env.j2 | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/templates/env.j2 b/templates/env.j2 index 30bda82..e97ef43 100644 --- a/templates/env.j2 +++ b/templates/env.j2 | |||
@@ -1,9 +1,10 @@ | |||
1 | {% for key, value in (clever_base_env | combine(clever_env)).items() %} | 1 | {% set static_env = clever_base_env | combine(clever_env) %} |
2 | {{ key }}={{ value | to_json }} | 2 | {% set dynamic_env = {} %} |
3 | {% endfor %} | 3 | {% if clever_haskell_entry_point %} |
4 | |||
5 | {%- if clever_haskell_entry_point %} | ||
6 | {# Haskell only #} | 4 | {# Haskell only #} |
7 | {# https://www.clever-cloud.com/doc/get-help/reference-environment-variables/#haskell #} | 5 | {# https://www.clever-cloud.com/doc/get-help/reference-environment-variables/#haskell #} |
8 | CC_RUN_COMMAND={{'~/.local/bin/' + clever_haskell_entry_point | to_json }} | 6 | {% set dynamic_env = { 'CC_RUN_COMMAND': '~/.local/bin/' + clever_haskell_entry_point } %} |
9 | {% endif %} | 7 | {% endif %} |
8 | {# dict2items is not enough here, all the values have to be stringified #} | ||
9 | {# git-blame this line for more explanations #} | ||
10 | {{ static_env | combine(dynamic_env) | json_env_map | to_json }} | ||