From d2542fd02392884215dfda929e20c657a8a2452f Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Thu, 9 Jul 2026 11:58:26 +0200 Subject: [PATCH] Use gunicorn preload option Required by https://github.com/readthedocs/readthedocs.org/pull/13180 --- dockerfiles/entrypoints/proxito.sh | 2 +- dockerfiles/entrypoints/web.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfiles/entrypoints/proxito.sh b/dockerfiles/entrypoints/proxito.sh index 258d689..b6d9d97 100755 --- a/dockerfiles/entrypoints/proxito.sh +++ b/dockerfiles/entrypoints/proxito.sh @@ -2,7 +2,7 @@ ../../docker/common.sh -CMD="uv run gunicorn readthedocs.wsgi:application -w 3 -b 0.0.0.0:8000 --max-requests=10000 --timeout=0" +CMD="uv run gunicorn readthedocs.wsgi:application -c python:readthedocs.gunicorn_conf -w 3 -b 0.0.0.0:8000 --max-requests=10000 --timeout=0" if [ -n "${DOCKER_NO_RELOAD}" ]; then echo "Running process with no reload" diff --git a/dockerfiles/entrypoints/web.sh b/dockerfiles/entrypoints/web.sh index 11e299b..d9d76bf 100755 --- a/dockerfiles/entrypoints/web.sh +++ b/dockerfiles/entrypoints/web.sh @@ -13,7 +13,7 @@ then uv run python3 manage.py loaddata test_data fi -CMD="uv run gunicorn readthedocs.wsgi:application -w 3 -b 0.0.0.0:8000 --max-requests=10000 --timeout=0" +CMD="uv run gunicorn readthedocs.wsgi:application -c python:readthedocs.gunicorn_conf -w 3 -b 0.0.0.0:8000 --max-requests=10000 --timeout=0" if [ -n "${DOCKER_NO_RELOAD}" ]; then echo "Running process with no reload"