Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: CI

on:
push:
branches: ["main", "develop"]
pull_request:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eu

if [ "${DJANGO_SETTINGS_MODULE:-config.settings.dev}" = "config.settings.production" ]; then
python manage.py check --deploy --fail-level WARNING
python manage.py check --deploy --fail-level "${DJANGO_DEPLOY_CHECK_FAIL_LEVEL:-WARNING}"
else
python manage.py check
fi
Expand Down
1 change: 1 addition & 0 deletions docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ DJANGO_SECURE_SSL_REDIRECT=0
DJANGO_SESSION_COOKIE_SECURE=0
DJANGO_CSRF_COOKIE_SECURE=0
DJANGO_SECURE_HSTS_SECONDS=0
DJANGO_DEPLOY_CHECK_FAIL_LEVEL=ERROR
```

The production Compose stack builds `Dockerfile.prod`, which installs
Expand Down
4 changes: 4 additions & 0 deletions production.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ DJANGO_CSRF_COOKIE_SECURE=1
DJANGO_SECURE_HSTS_SECONDS=31536000
DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=1
DJANGO_SECURE_HSTS_PRELOAD=1

# Optional: relax the deploy-check fail threshold for local production-like
# verification only. Leave this unset for stricter production startup.
# DJANGO_DEPLOY_CHECK_FAIL_LEVEL=ERROR
Loading