From 6757123078723c669e633ebd43c5efda784d58e9 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 28 Oct 2020 09:16:58 +0100 Subject: [PATCH] Bake constants in boot.sh script instead of .env --- .env.tpl | 7 ------- web/boot.sh | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.env.tpl b/.env.tpl index 2440ef2e..ca0657d5 100644 --- a/.env.tpl +++ b/.env.tpl @@ -173,10 +173,3 @@ NOPAQUE_CONTACT_EMAIL_ADRESS= # DEFAULT: 0 # Number of values to trust for X-Forwarded-Proto # NOPAQUE_NUM_PROXIES_X_PROTO= - - -################################################################################ -# Constants # -# DO NOT CHANGE ANYTHING BELOW # -################################################################################ -FLASK_APP=nopaque.py diff --git a/web/boot.sh b/web/boot.sh index a390d4c4..0d088ac2 100755 --- a/web/boot.sh +++ b/web/boot.sh @@ -1,5 +1,6 @@ #!/bin/bash source venv/bin/activate +export FLASK_APP=nopaque.py if [[ "$#" -eq 0 ]]; then while true; do flask deploy