Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from tl-its-umich-edu/jonespm-patch-2
Browse files Browse the repository at this point in the history
Remove space from #6 and set GUNICORN_TIMEOUT
  • Loading branch information
zqian authored Sep 13, 2018
2 parents 3a15ecb + 2d147b7 commit 8a59a37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ if [ -z "${GUNICORN_PORT}" ]; then
GUNICORN_PORT=8000
fi

if [ -z "${GUNICORN_TIMEOUT}" ]; then
GUNICORN_TIMEOUT=120
fi

set -x

python manage.py migrate

gunicorn \
--workers="${GUNICORN_WORKERS}" \
--bind=0.0.0.0:${GUNICORN_PORT} \
--timeout=120 \
--timeout=${GUNICORN_TIMEOUT} \
student_explorer.wsgi:application

0 comments on commit 8a59a37

Please sign in to comment.