Skip to content

Commit 37a6467

Browse files
committed
chore: 서버 이전
1 parent 1611624 commit 37a6467

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/health_check.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ else
1515
fi
1616

1717

18-
echo "> Start health check of WAS at 'http://15.164.225.117:${TARGET_PORT}' ..."
18+
echo "> Start health check of WAS at 'http://127.0.0.1:${TARGET_PORT}' ..."
1919

2020
for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10
2121
do
2222
echo "> #${RETRY_COUNT} trying..."
23-
RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://13.209.202.74:${TARGET_PORT}/api)
23+
RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:${TARGET_PORT}/api)
2424

2525
if [ ${RESPONSE_CODE} -eq 200 ]; then
2626
echo "> New WAS successfully running"

scripts/switch.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ else
1717
fi
1818

1919
# Change proxying port into target port
20-
echo "set \$service_url http://15.164.225.117:${TARGET_PORT};" | tee /home/ec2-user/service_url.inc
21-
echo "set \$service_admin_url http://15.164.225.117:${TARGET_PORT}/admin;" | tee /home/ec2-user/service_admin_url.inc
20+
echo "set \$service_url http://127.0.0.1:${TARGET_PORT};" | sudo tee /home/ec2-user/service_url.inc
21+
echo "set \$service_admin_url http://127.0.0.1:${TARGET_PORT}/admin;" | sudo tee /home/ec2-user/service_admin_url.inc
2222

2323
echo "> Now Nginx proxies to ${TARGET_PORT}."
2424

0 commit comments

Comments
 (0)