Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 42753a0

Browse files
committed
Use granian instead of gunicorn
1 parent 4504ac7 commit 42753a0

File tree

3 files changed

+147
-31
lines changed

3 files changed

+147
-31
lines changed

meta/docker/_/bin/venue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ function start-app {
2323
VENUE_THREADS="${VENUE_THREADS:-1}"
2424
VENUE_PORT_PREFIX="${VENUE_PORT_PREFIX:-}"
2525
export PYTHONPATH="/app/src"
26-
exec /app/.venv/bin/python -m gunicorn \
26+
exec /app/.venv/bin/granian \
27+
--interface wsgi \
2728
venue_django.wsgi:application \
28-
--enable-stdio-inheritance \
29-
--bind="0.0.0.0:${VENUE_PORT_PREFIX}81" \
30-
--preload \
29+
--host="0.0.0.0" \
30+
--port="${VENUE_PORT_PREFIX}81" \
3131
--workers "${VENUE_WORKERS}" \
32-
--threads "${VENUE_THREADS}"
32+
--blocking-threads "${VENUE_THREADS}"
3333
}
3434

3535
function start-proxy {

poetry.lock

Lines changed: 141 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ psycopg = { extras = ["binary"], version = "^3.1.19" }
1313
pillow = "^11.0.0"
1414
django-prose-editor = { extras = ["sanitize"], version = "^0.8.1" }
1515
django-constance = "^4.1.1"
16-
gunicorn = "^23.0.0"
16+
granian = "^2.5.0"

0 commit comments

Comments
 (0)