Browse Source

Set timeout option to gunicorn

If there is no timeout option, we cannot upload a large file. So I set the option.
pull/110/head
Hironsan 6 years ago
parent
commit
415b0b3f2e
1 changed files with 1 additions and 1 deletions
  1. 2
      tools/run.sh

2
tools/run.sh

@ -6,4 +6,4 @@ if [[ ! -d "app/staticfiles" ]]; then python app/manage.py collectstatic --noinp
python app/manage.py wait_for_db
python app/manage.py migrate
gunicorn --bind="0.0.0.0:${PORT:-8000}" --workers="${WORKERS:-1}" --pythonpath=app app.wsgi
gunicorn --bind="0.0.0.0:${PORT:-8000}" --workers="${WORKERS:-1}" --pythonpath=app app.wsgi --timeout 300
Loading…
Cancel
Save