From 088ab6b6530bad8e163f98b08752cd0dc82f553f Mon Sep 17 00:00:00 2001 From: andrew-jameson Date: Fri, 20 Oct 2023 14:55:00 -0400 Subject: [PATCH] Adding in staging jwt_key due to recent deployment failure. --- scripts/deploy-backend.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/deploy-backend.sh b/scripts/deploy-backend.sh index 7a66e5d24..7fb1fb657 100755 --- a/scripts/deploy-backend.sh +++ b/scripts/deploy-backend.sh @@ -51,6 +51,8 @@ set_cf_envs() "FRONTEND_BASE_URL" "LOGGING_LEVEL" "REDIS_URI" + "JWT_KEY" + "STAGING_JWT_KEY" ) echo "Setting environment variables for $CGAPPNAME_BACKEND" @@ -62,6 +64,8 @@ set_cf_envs() cf_cmd="cf unset-env $CGAPPNAME_BACKEND $var_name ${!var_name}" $cf_cmd continue + elif [[ ("$var_name" =~ "STAGING_*") && ("$CF_SPACE" = "tanf-staging") ]]; then + var_name=$(echo "$var_name" | sed -e 's@STAGING_@@g') fi cf_cmd="cf set-env $CGAPPNAME_BACKEND $var_name ${!var_name}"