Commit 37a6467 1 parent 1611624 commit 37a6467 Copy full SHA for 37a6467
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
fi
16
16
17
17
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} ' ..."
19
19
20
20
for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10
21
21
do
22
22
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)
24
24
25
25
if [ ${RESPONSE_CODE} -eq 200 ]; then
26
26
echo " > New WAS successfully running"
Original file line number Diff line number Diff line change 17
17
fi
18
18
19
19
# 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
22
22
23
23
echo " > Now Nginx proxies to ${TARGET_PORT} ."
24
24
You can’t perform that action at this time.
0 commit comments