From 1c5312510ec296c872acf20f01bb7b9b17cbb950 Mon Sep 17 00:00:00 2001 From: Bae Hyeonseo Date: Fri, 6 Oct 2023 17:30:54 +0900 Subject: [PATCH] ci/cd --- docker-compose.yml | 4 ++-- scripts/deploy.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e638dfb..3d3820f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: expose: - 8080 ports: - - 8080:8080 + - 8081:8080 environment: - TZ=Asia/Seoul green: @@ -16,6 +16,6 @@ services: expose: - 8080 ports: - - 8081:8080 + - 8082:8080 environment: - TZ=Asia/Seoul \ No newline at end of file diff --git a/scripts/deploy.sh b/scripts/deploy.sh index abf35b8..c52d748 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -17,7 +17,7 @@ if [ -z $IS_GREEN ];then # blue라면 echo "3. green health check..." sleep 3 - REQUEST=$(curl http://127.0.0.1:8081) # green으로 request + REQUEST=$(curl http://127.0.0.1:8082) # green으로 request if [ -n "$REQUEST" ]; then # 서비스 가능하면 health check 중지 echo "health check success" break ; @@ -42,7 +42,7 @@ else while [ 1 = 1 ]; do echo "3. blue health check..." sleep 3 - REQUEST=$(curl http://127.0.0.1:8080) # blue로 request + REQUEST=$(curl http://127.0.0.1:8081) # blue로 request if [ -n "$REQUEST" ]; then # 서비스 가능하면 health check 중지 echo "health check success"