-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcfile
More file actions
12 lines (12 loc) · 874 Bytes
/
Procfile
File metadata and controls
12 lines (12 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
# running migrations invalidates the cache even if no migrations are run because
# django runs the post_migrate signal regardless. first check if running migrate
# is necessary to avoid invalidating the cache on every deploy.
release: python ./manage.py migrate --check || python ./manage.py migrate
# certain streaming endpoints (like cohort-all-metadata) require more time.
# set the request line limit to match heroku:
# https://devcenter.heroku.com/articles/http-routing#http-validation-and-restrictions
# long request lines are useful for long DSL search queries
web: gunicorn --graceful-timeout 120 --timeout 125 --limit-request-line 8192 --bind 0.0.0.0:$PORT isic.wsgi
worker: REMAP_SIGTERM=SIGQUIT ./deploy/worker.sh
low_priority_worker: REMAP_SIGTERM=SIGQUIT ./deploy/low-priority-worker.sh
beat: REMAP_SIGTERM=SIGQUIT celery --app isic.celery beat --loglevel INFO