Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ WORKDIR /app/krill
EXPOSE 8000

# Production command
CMD ["sh", "-c", "uv run python manage.py migrate && uv run gunicorn --bind 0.0.0.0:8000 --workers 3 --timeout 120 krill.wsgi:application"]
CMD ["sh", "-c", "uv run python manage.py migrate && uv run gunicorn --bind 0.0.0.0:8000 --workers 3 --timeout 120 --no-control-socket krill.wsgi:application"]

# Testing stage
FROM base AS testing
Expand Down
2 changes: 1 addition & 1 deletion app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
github:
repo: your-username/krill
branch: main
run_command: gunicorn krill.wsgi:application --bind 0.0.0.0:8000
run_command: gunicorn krill.wsgi:application --bind 0.0.0.0:8000 --no-control-socket
environment_slug: python
instance_count: 1
instance_size_slug: basic-xxs
Expand Down
2 changes: 1 addition & 1 deletion docs/deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The multi-stage [`Dockerfile`](../../Dockerfile) installs dependencies with `uv`
|--------|---------|---------|
| `development` | Local container with dev dependencies | `runserver 0.0.0.0:8000` |
| `testing` | Isolated test run | `manage.py test --verbosity=2` |
| `production` | Non-root user, static files collected | `manage.py migrate` then `gunicorn krill.wsgi:application` (3 workers) |
| `production` | Non-root user, static files collected | `manage.py migrate` then `gunicorn krill.wsgi:application` (3 workers, control socket off) |

The Django project lives in the `krill/` subdirectory, so the production stage sets
`WORKDIR /app/krill`. That is what makes `krill.wsgi:application` resolve to
Expand Down
Loading