Browse Source

curl update

main
Julien Dudek 6 years ago
parent
commit
fa6a532cd9
  1. 5
      .circleci/config.yml

5
.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 command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:main
- run: - run:
name: Smoke Test 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" echo "heroku app not responding, failing deploy"
exit 1 exit 1
fi fi

Loading…
Cancel
Save