Skip to content

Commit

Permalink
fix: 배포 스크립트 권한 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
abc5259 committed Oct 17, 2024
1 parent 8110f41 commit 8863ef9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
sudo docker compose stop $STOP_CONTAINER_NAME
sudo docker compose rm -f $STOP_CONTAINER_NAME

0 comments on commit 8863ef9

Please sign in to comment.