From 4ee05156971c06a0e8fdb7ecbaeb7541980e8b54 Mon Sep 17 00:00:00 2001 From: ndrg13 <72130242+ndrg13@users.noreply.github.com> Date: Wed, 2 Dec 2020 23:23:36 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 247551b..097229b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -124,7 +124,11 @@ jobs: command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main - run: name: Smoke Test - command: echo todo && false + 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 + fi workflows: version: 2 @@ -173,4 +177,3 @@ workflows: filters: branches: only: main -