From 8863ef9089af766a65cbb748231be110fa72f7cb Mon Sep 17 00:00:00 2001 From: LeeJaeHoon Date: Thu, 17 Oct 2024 10:47:54 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B0=B0=ED=8F=AC=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A6=BD=ED=8A=B8=20=EA=B6=8C=ED=95=9C=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/deploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/deploy.sh b/deploy/deploy.sh index f45c41c..825c98a 100644 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -24,8 +24,8 @@ fi echo -e "그린($GREEN_PORT)과 블루($BLUE_PORT) 서버 확인 ${CONTAINER_NAME} 컨테이너를 실행합니다." -docker compose pull $CONTAINER_NAME -docker compose up -d $CONTAINER_NAME +sudo docker compose pull $CONTAINER_NAME +sudo docker compose up -d $CONTAINER_NAME for retry in {1..10} do @@ -52,5 +52,5 @@ echo "set \$service_url $CONTAINER_NAME;" | sudo tee ./conf/service-url.inc sudo docker exec nginx nginx -s reload echo "$STOP_CONTAINER_NAME 컨테이너 종료" -docker compose stop $STOP_CONTAINER_NAME -docker compose rm -f $STOP_CONTAINER_NAME \ No newline at end of file +sudo docker compose stop $STOP_CONTAINER_NAME +sudo docker compose rm -f $STOP_CONTAINER_NAME \ No newline at end of file