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