Skip to content
Merged
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
6 changes: 5 additions & 1 deletion scripts/heroku.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ export INTEGRATE_SOCKETIO=false
# also socketio is not used in a celery task so no problem to turn it off
chmod -R 0777 ./static
celery worker -A app.celery --loglevel=info &
gunicorn app:app -w 1
if [ "$APP_CONFIG" == "config.DevelopmentConfig" ]; then
python manage.py runserver
else
gunicorn app:app -w 1
fi
# if not running on free dyno
# define a separate worker and scale
# https://devcenter.heroku.com/articles/celery-heroku