From f88dfc63de1a92abdf4ab9e4493b9ba2bd7d8b86 Mon Sep 17 00:00:00 2001 From: Sejeong Kim Date: Thu, 31 Oct 2024 00:32:19 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20docker-compse=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layer-api/infra/production/deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layer-api/infra/production/deploy.sh b/layer-api/infra/production/deploy.sh index 0e063c6..3b02c0b 100644 --- a/layer-api/infra/production/deploy.sh +++ b/layer-api/infra/production/deploy.sh @@ -1,6 +1,6 @@ #!/bin/bash -IS_GREEN=$(sudo docker ps | grep green) # 현재 실행중인 App이 blue인지 확인합니다. +IS_GREEN=$(sudo docker ps | grep layer-api-blue) # 현재 실행중인 App이 blue인지 확인합니다. DEFAULT_CONF=" /etc/nginx/nginx.conf" if [ -z $IS_GREEN ];then # blue라면 @@ -16,7 +16,7 @@ if [ -z $IS_GREEN ];then # blue라면 echo "3. green health check..." sudo sleep 3 - REQUEST=$(sudo curl http://127.0.0.1:8080) # green으로 request + REQUEST=$(sudo curl http://127.0.0.1:8080/greeting) # green으로 request if [ -n "$REQUEST" ]; then # 서비스 가능하면 health check 중지 echo "health check success" break ; @@ -41,7 +41,7 @@ else while [ 1 = 1 ]; do echo "3. blue health check..." sleep 3 - REQUEST=$(curl http://127.0.0.1:8081) # blue로 request + REQUEST=$(curl http://127.0.0.1:8081/greeting) # blue로 request if [ -n "$REQUEST" ]; then # 서비스 가능하면 health check 중지 echo "health check success"