Skip to content

Commit

Permalink
fix health check
Browse files Browse the repository at this point in the history
  • Loading branch information
chicori3 committed May 6, 2024
1 parent ba28122 commit 26466d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/health_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ APP_PATH=/home/ubuntu/app/inspiration

export $(cat ${APP_PATH}/source/.env | grep -v ^# | xargs) >/dev/null
echo "> Start health check of WAS at '${TARGET_URL}:${PORT}' ..."
echo "> Start health check of WAS at '${TARGET_URL}:8080' ..."
for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10; do
echo "> #${RETRY_COUNT} trying..."
RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" ${TARGET_URL}:"${PORT}"/health)
RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" ${TARGET_URL}:8080/health)
if [ ${RESPONSE_CODE} -eq 200 ]; then
echo "> New WAS successfully running"
Expand Down

0 comments on commit 26466d1

Please sign in to comment.