From c1bc262bd40acbee69bb225efbbf0f15b604b53e Mon Sep 17 00:00:00 2001 From: Sergio Fenoll Date: Thu, 16 Nov 2023 22:57:25 +0100 Subject: [PATCH] feat: replace gunicorn worker with gthread The meinheld worker seems to be unmaintained and it doesn't work with gunicorn's reload mechanism. --- start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index 4ddeab2..c23b4c7 100644 --- a/start.sh +++ b/start.sh @@ -2,7 +2,7 @@ set -eu if [ ${MODE:-""} == "development" ]; then if [ -f /app/requirements.txt ]; then pip install -r /app/requirements.txt; fi - exec gunicorn -k --reload egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE" + exec gunicorn -k --reload gthread -c "$GUNICORN_CONF" "$APP_MODULE" else - exec gunicorn -k egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE" + exec gunicorn -k gthread -c "$GUNICORN_CONF" "$APP_MODULE" fi