From 5609dc3d4ba9d6e6c83445e2cd5b7567bbbb8213 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 18 Oct 2021 10:56:10 +0200 Subject: [PATCH] second commit --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 093244f..2e27412 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -107,7 +107,11 @@ jobs: - checkout - run: name: Heroku Deploy - 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 - run: name: Smoke Test command: echo todo && false