diff --git a/testbackend.sh b/testbackend.sh index a895b07..5febb34 100755 --- a/testbackend.sh +++ b/testbackend.sh @@ -1,5 +1,5 @@ -#HTTPCODE=$(echo `curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles` | tr -d ' ') -#if [ "$HTTPCODE" -ne 200 ];then -# echo "heroku app not responding, failing deploy" -# exit 1 -#fi \ No newline at end of file +HTTPCODE=$(echo `curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles` | tr -d ' ') +if [ "$HTTPCODE" -ne 200 ];then + echo "heroku app not responding, failing deploy" + exit 1 +fi \ No newline at end of file