Browse Source

🔧 update testbackend.sh file

main
tchawou-daniel 5 years ago
parent
commit
094db389fe
  1. 10
      testbackend.sh

10
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
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
Loading…
Cancel
Save