From da4272d7bd69d2a9de357e999505dadfba532df1 Mon Sep 17 00:00:00 2001 From: Tristan Date: Sun, 17 Jan 2021 19:28:04 +0100 Subject: [PATCH] :wrench: update Procfile/test_heroku/config.yml --- .circleci/config.yml | 3 ++- Procfile | 2 +- test_heroku.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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