From 094db389fede011229ad482f065379bfc35ca7af Mon Sep 17 00:00:00 2001 From: tchawou-daniel Date: Mon, 18 Jan 2021 00:15:28 +0100 Subject: [PATCH] :wrench: update testbackend.sh file --- testbackend.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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