From 09d61e9a5a9774b3daa324abc59de9351c520a56 Mon Sep 17 00:00:00 2001 From: MTLantoine Date: Tue, 1 Dec 2020 17:05:02 +0100 Subject: [PATCH] fix error --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0fc5a2f..adb15ef 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,14 +121,14 @@ jobs: - checkout - run: name: Heroku Deploy - command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master + command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:main - run: name: Smoke Test command: | + HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/` if [[ "$HTTPCODE" -ne 200 ]]; then echo "heroku app not responding, failing deploy" \ exit 1 \ - HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/` fi workflows: