Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/entrypoint-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ echo [TIMING `date +"%F %R:%S"`] Starting nginx
# run main worker in current thread
echo [TIMING `date +"%F %R:%S"`] Starting www workers

gunicorn "app_dir.wsgi:application" \

WSGI_APP=$(python -c "from django.conf import settings; print(settings.WSGI_APPLICATION[:-12])")
echo [TIMING `date +"%F %R:%S"`] Using WSGI_APP $WSGI_APP

gunicorn "$WSGI_APP" \
--bind "0.0.0.0:8000" \
--workers "${APP_WORKER_COUNT:-1}" \
--workers "${APP_WORKER_COUNT:-4}" \
--log-level "info" \
--reload \
--timeout 600 \
Expand Down