Skip to content

Commit

Permalink
fix: prod에 --remove-orphans 옵션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Feb 9, 2025
1 parent 62579f8 commit 78bfaf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layer-api/infra/production/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ -z $IS_GREEN ];then # blue라면
sudo docker-compose -f docker-compose-green.yaml pull

echo "2. green container up"
sudo docker-compose -f docker-compose-green.yaml up -d
sudo docker-compose -f docker-compose-green.yaml up -d --remove-orphans

while [ 1 = 1 ]; do
echo "3. green health check..."
Expand Down Expand Up @@ -43,7 +43,7 @@ else
sudo docker-compose -f docker-compose-blue.yaml pull

echo "2. blue container up"
sudo docker-compose -f docker-compose-blue.yaml up -d
sudo docker-compose -f docker-compose-blue.yaml up -d --remove-orphans


while [ 1 = 1 ]; do
Expand Down

0 comments on commit 78bfaf7

Please sign in to comment.