From b7f997f8b4e0bebcfe9dec076f254ecd2b4da460 Mon Sep 17 00:00:00 2001 From: khelia Date: Thu, 3 Dec 2020 09:47:30 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 795bac4..159c99b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,7 +121,11 @@ jobs: - checkout - run: name: Heroku Deploy - command: echo todo && false + command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://salty-journey-63595.herokuapp.com/` + if [ "$HTTPCODE" -ne 200 ];then + echo "heroku app not responding, failing deploy" + exit 1 + fi - run: name: Smoke Test command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://salty-journey-63595.herokuapp.com/`