From 4c471983c3935382af91a1bda23fd75df5d6cbe0 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Mon, 14 Nov 2022 17:26:48 -0500 Subject: [PATCH] ci: revert prod settings change when deploying to sandbox --- .github/workflows/build.yml | 4 ++++ dev/deploy-to-container/settings_local.py | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bfb862adb..5ab1c7869 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -433,9 +433,13 @@ jobs: env: DEBIAN_FRONTEND: noninteractive run: | + echo "Reset production flags in settings.py..." + sed -i -r -e 's/^DEBUG *= *.*$/DEBUG = True/' -e "s/^SERVER_MODE *= *.*\$/SERVER_MODE = 'development'/" ietf/settings.py + echo "Install Deploy to Container CLI dependencies..." cd dev/deploy-to-container npm ci cd ../.. + echo "Start Deploy..." node ./dev/deploy-to-container/cli.js --branch ${{ github.ref_name }} --domain neverusethis.com - name: Cleanup old docker resources diff --git a/dev/deploy-to-container/settings_local.py b/dev/deploy-to-container/settings_local.py index b44d1f91e..f4753cc8a 100644 --- a/dev/deploy-to-container/settings_local.py +++ b/dev/deploy-to-container/settings_local.py @@ -3,9 +3,6 @@ from ietf.settings import * # pyflakes:ignore -SERVER_MODE = 'development' -DEBUG = True - ALLOWED_HOSTS = ['*'] DATABASES = {