Skip to content

Commit

Permalink
fix: 무중단 배포 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kalsteve committed Jul 23, 2024
1 parent 5697e66 commit 304d8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ init_container() {

# 컨테이너 스위칭 함수
switch_container() {
local IS_BLUE=$(docker-compose -p "${DOCKER_APP_NAME}" -f ${PROJECT_ROOT}/docker-compose-deploy.yml ps | grep fastapi-blue)
local IS_BLUE=$(docker compose -p "${DOCKER_APP_NAME}" -f ${PROJECT_ROOT}/docker-compose-deploy.yml ps | grep fastapi-blue)
# IS_BLUE 변수에 fastapi-blue가 없다면
if [ -z "$IS_BLUE" ]; then
log_message "### GREEN => BLUE ###"
Expand Down

0 comments on commit 304d8bc

Please sign in to comment.