From 3102d4cd5c1622329fbc93462382baed3233acc0 Mon Sep 17 00:00:00 2001 From: iamareebjamal Date: Sat, 22 Jun 2019 12:44:19 +0530 Subject: [PATCH] chore: Use development server on heroku for development config --- scripts/heroku.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/heroku.sh b/scripts/heroku.sh index 1283f73b5e..c62d17c333 100644 --- a/scripts/heroku.sh +++ b/scripts/heroku.sh @@ -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