From 21fc9f57a8e5836fc6d378a0dcb06ba0bb764bc6 Mon Sep 17 00:00:00 2001 From: hallouma875 Date: Thu, 3 Dec 2020 18:15:55 +0100 Subject: [PATCH] first commit --- .circleci/config.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5282155..3620bdc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -125,11 +125,11 @@ jobs: - run: name: Smoke Test - command: if [[ "$HTTPCODE" -ne 200 ]]; then - echo "heroku app not responding, failing deploy" \ - exit 1 \ - HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://desolate-oasis-37147.herokuapp.com/` - fi + 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