Skip to content

Commit

Permalink
config: .env 파일 내용 export
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaesung committed Sep 15, 2022
1 parent 938f8db commit 58ba2d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/health_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
TARGET_URL=localhost
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}' ..."
for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10
do
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)
Expand Down

0 comments on commit 58ba2d1

Please sign in to comment.