Skip to content

Commit

Permalink
feat: replace gunicorn worker with gthread
Browse files Browse the repository at this point in the history
The meinheld worker seems to be unmaintained and it doesn't work with
gunicorn's reload mechanism.
  • Loading branch information
sergiofenoll committed Nov 16, 2023
1 parent e4c28be commit c1bc262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c1bc262

Please sign in to comment.