From 2c7d60bede6cc2195c4787831bf40e23f4067b0c Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 18 Oct 2021 11:05: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 48c71e6..aa53d16 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -49,7 +49,11 @@ jobs: at: /tmp - run: name: Deploy app - 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 back-test-unit: <<: *shared-config steps: