From ab0a23ad0af36820e0c1be7420a3f91794cd5149 Mon Sep 17 00:00:00 2001 From: Tristan Date: Tue, 1 Dec 2020 16:43:40 +0100 Subject: [PATCH] update --- test_heroku.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test_heroku.sh diff --git a/test_heroku.sh b/test_heroku.sh new file mode 100644 index 0000000..87bbed5 --- /dev/null +++ b/test_heroku.sh @@ -0,0 +1,8 @@ + +#!/bin/bash +HEROKU_APP_NAME="lit-journey-11530" +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