From fa6a532cd98a60d328c3b4c7cf6e697683a7137d Mon Sep 17 00:00:00 2001 From: Julien Dudek Date: Tue, 1 Dec 2020 16:25:22 +0100 Subject: [PATCH] curl update --- .circleci/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 740d483..e59e27f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -124,8 +124,9 @@ jobs: 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 + 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