fix(staging): hardcode APP_DEBUG=false to prevent env override
All checks were successful
Test Runner / test-php (push) Successful in 30s
Deploy Application / deploy (push) Successful in 59s
Test Runner / test-basic (push) Successful in 6s

Changed APP_DEBUG from ${APP_DEBUG:-false} to hardcoded false value
in all 4 services (php, nginx, queue-worker, scheduler).

This prevents any server-side .env or environment variables from
accidentally enabling debug mode in staging, which was causing
detailed error pages to be displayed.
This commit is contained in:
2025-11-25 04:33:46 +01:00
parent 26f87060d5
commit 4309ea7972

View File

@@ -20,7 +20,7 @@ services:
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
- APP_ENV=staging - APP_ENV=staging
- APP_DEBUG=${APP_DEBUG:-false} - APP_DEBUG=false
- APP_URL=https://staging.michaelschiemer.de - APP_URL=https://staging.michaelschiemer.de
- APP_KEY=${APP_KEY:-} - APP_KEY=${APP_KEY:-}
# Git Repository - clones staging branch # Git Repository - clones staging branch
@@ -210,7 +210,7 @@ services:
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
- APP_ENV=staging - APP_ENV=staging
- APP_DEBUG=${APP_DEBUG:-false} - APP_DEBUG=false
# Git Repository - clones staging branch # Git Repository - clones staging branch
- GIT_REPOSITORY_URL=${GIT_REPOSITORY_URL:-} - GIT_REPOSITORY_URL=${GIT_REPOSITORY_URL:-}
- GIT_BRANCH=staging - GIT_BRANCH=staging
@@ -351,7 +351,7 @@ services:
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
- APP_ENV=staging - APP_ENV=staging
- APP_DEBUG=${APP_DEBUG:-false} - APP_DEBUG=false
# Database - using separate staging database # Database - using separate staging database
- DB_HOST=postgres - DB_HOST=postgres
- DB_PORT=5432 - DB_PORT=5432
@@ -406,7 +406,7 @@ services:
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
- APP_ENV=staging - APP_ENV=staging
- APP_DEBUG=${APP_DEBUG:-false} - APP_DEBUG=false
# Database - using separate staging database # Database - using separate staging database
- DB_HOST=postgres - DB_HOST=postgres
- DB_PORT=5432 - DB_PORT=5432