diff --git a/.circleci/config.yml b/.circleci/config.yml index dd8f9d1..2f77800 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,10 +121,10 @@ jobs: - checkout - run: name: Heroku Deploy - command: echo todo && false + command: git push heroku main - run: name: Smoke Test - command: echo todo && false + command: ./heroku_test_dep.sh workflows: version: 2 diff --git a/heroku_test_dep.sh b/heroku_test_dep.sh new file mode 100644 index 0000000..a94da7c --- /dev/null +++ b/heroku_test_dep.sh @@ -0,0 +1,6 @@ +#!/bin/bash +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 \ No newline at end of file