Skip to content

Commit 4c47198

Browse files
authored
ci: revert prod settings change when deploying to sandbox
1 parent 5e7debb commit 4c47198

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,13 @@ jobs:
433433
env:
434434
DEBIAN_FRONTEND: noninteractive
435435
run: |
436+
echo "Reset production flags in settings.py..."
437+
sed -i -r -e 's/^DEBUG *= *.*$/DEBUG = True/' -e "s/^SERVER_MODE *= *.*\$/SERVER_MODE = 'development'/" ietf/settings.py
438+
echo "Install Deploy to Container CLI dependencies..."
436439
cd dev/deploy-to-container
437440
npm ci
438441
cd ../..
442+
echo "Start Deploy..."
439443
node ./dev/deploy-to-container/cli.js --branch ${{ github.ref_name }} --domain neverusethis.com
440444
441445
- name: Cleanup old docker resources

dev/deploy-to-container/settings_local.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
from ietf.settings import * # pyflakes:ignore
55

6-
SERVER_MODE = 'development'
7-
DEBUG = True
8-
96
ALLOWED_HOSTS = ['*']
107

118
DATABASES = {

0 commit comments

Comments
 (0)