Skip to content

Commit c161690

Browse files
committed
Ensure DJANGO_SETTINGS_MODULE correct for both dev and production.
1 parent 4ee13eb commit c161690

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ EXPOSE 8080
2424
# 2. Set PORT variable that is used by Gunicorn. This should match "EXPOSE"
2525
# command.
2626
ENV PYTHONUNBUFFERED=1 \
27-
PORT=8080
27+
PORT=8080 \
28+
DJANGO_SETTINGS_MODULE=alloydflanagan.settings.production
2829

2930
# Use /app folder as a directory where the source code is stored.
3031
WORKDIR /app

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ services:
1919
- ./app/yarn.lock:/app/yarn.lock:delegated
2020
environment:
2121
DATABASE_URL: postgres://wagtail:development@postgres:5432/alloydflanagan
22+
DJANGO_SETTINGS_MODULE: alloydflanagan.settings.dev
2223
ports:
2324
- "8080:8080"
2425

0 commit comments

Comments
 (0)