diff --git a/.circleci/config.yml b/.circleci/config.yml index 440ebec..58a41cd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -51,7 +51,8 @@ jobs: - run: name: Deploy main to heroku command: - git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master + git config --global push.default matching + git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main - run: name: Smoke test command: | diff --git a/Procfile b/Procfile index 60df632..a96c523 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn autoapp:app -b 0.0.0.0:$PORT -w 3 +web: flask db upgrade;gunicorn autoapp:app -b 0.0.0.0:$PORT -w 3 diff --git a/test_heroku.sh b/test_heroku.sh index 6b7ea3f..878a5b2 100755 --- a/test_heroku.sh +++ b/test_heroku.sh @@ -1,7 +1,7 @@ #!/bin/bash HEROKU_APP_NAME="calm-crag-04725" -HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/` +HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles` if [ "$HTTPCODE" -ne 200 ];then echo "heroku app not responding, failing deploy" exit 1