Skip to content

Commit b5d78d8

Browse files
committed
Test setting debug from env
1 parent 4c2b552 commit b5d78d8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/build-and-deploy.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ jobs:
88
if: >
99
github.ref == 'refs/heads/main' ||
1010
github.ref == 'refs/heads/staging' ||
11-
github.ref == 'refs/heads/development'
11+
github.ref == 'refs/heads/development' ||
12+
github.ref == 'refs/heads/test-debug-env-var'
1213
strategy:
1314
matrix:
1415
# Specify the docker-compose services to build images from

src/signal_documentation/settings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848

4949

5050
# SECURITY WARNING: don't run with debug turned on in production!
51-
# DEBUG = bool(strtobool(os.getenv('DEBUG', 'True')))
52-
DEBUG = True
51+
DEBUG = bool(strtobool(os.getenv('DEBUG', 'True')))
52+
#DEBUG = True
5353

5454

5555
# SECURITY WARNING: keep the secret key used in production secret!

0 commit comments

Comments
 (0)