Skip to content

Commit

Permalink
chore: enable live reload in dev mode with gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiofenoll committed Nov 16, 2023
1 parent ed13f00 commit e4c28be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE"
exec gunicorn -k --reload egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE"
else
exec gunicorn -k egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE"
fi

0 comments on commit e4c28be

Please sign in to comment.