From 4b4a47ac10922918ea399aa149732883123f72b8 Mon Sep 17 00:00:00 2001 From: ndrg13 <72130242+ndrg13@users.noreply.github.com> Date: Thu, 3 Dec 2020 02:05:36 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5234403..a423b7b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -57,7 +57,7 @@ jobs: command: sudo npm install netlify-cli -g - run: name: Deploy app - command: netlify deploy --prod --dir /tmp/server-doc --auth $ACCESS_TOKEN --site $NETLIFY_SITE_ID + command: netlify deploy --prod --dir=/tmp/server-doc --auth $ACCESS_TOKEN --site $NETLIFY_SITE_ID back-test-unit: docker: - image: circleci/node:dubnium-browsers @@ -127,11 +127,12 @@ jobs: command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git 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 - echo "heroku app not responding, failing deploy"\ - exit 1\ - 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