From d3516b18064a741b2f1cb3074a859423fcf80713 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Tue, 9 Jul 2024 08:20:14 -0400 Subject: [PATCH] chore: Update Docker and Django server configuration --- .github/workflows/docker-image.yml | 2 +- backend/server/.env.example | 4 +++- backend/server/demo/settings.py | 2 +- docker-compose.yml | 1 + frontend/.env.example | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 75150a11..e890bfc6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -5,7 +5,7 @@ on: branches: - main paths: - - 'backend/**' + - "backend/**" env: IMAGE_NAME: "adventurelog-backend" diff --git a/backend/server/.env.example b/backend/server/.env.example index 389e4fc8..ea630476 100644 --- a/backend/server/.env.example +++ b/backend/server/.env.example @@ -5,4 +5,6 @@ PGPASSWORD='' SECRET_KEY='pleasechangethisbecauseifyoudontitwillbeverybadandyouwillgethackedinlessthanaminuteguaranteed' -PUBLIC_URL='http://127.0.0.1:8000' \ No newline at end of file +PUBLIC_URL='http://127.0.0.1:8000' + +DEBUG=True \ No newline at end of file diff --git a/backend/server/demo/settings.py b/backend/server/demo/settings.py index 8726e92f..73b9506c 100644 --- a/backend/server/demo/settings.py +++ b/backend/server/demo/settings.py @@ -25,7 +25,7 @@ SECRET_KEY = getenv('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = getenv('DEBUG', 'True') == 'True' # ALLOWED_HOSTS = [ # 'localhost', diff --git a/docker-compose.yml b/docker-compose.yml index b8edcc52..73e6638a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,6 +34,7 @@ services: - DJANGO_ADMIN_PASSWORD=admin - DJANGO_ADMIN_EMAIL=admin@example.com - PUBLIC_URL='http://127.0.0.1:8000' + - DEBUG=False ports: - "8000:8000" depends_on: diff --git a/frontend/.env.example b/frontend/.env.example index eb715fd6..85a177f0 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,2 +1,2 @@ PUBLIC_SERVER_URL=http://127.0.0.1:8000 -BODY_SIZE_LIMIT=Infinity +BODY_SIZE_LIMIT=Infinity \ No newline at end of file