Skip to content

Commit

Permalink
[backend] fix: deploy.sh 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu20 authored Nov 12, 2023
1 parent 2e59c28 commit 28f50ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ fi

sleep 40


# 새로운 컨테이너가 제대로 실행되었는지 확인
EXIST_AFTER=$(docker ps --filter name=${DOCKER_APP_NAME}-${AFTER_COMPOSE_COLOR} --filter status=running -q)
if [ -n "$EXIST_AFTER" ]; then
# nginx.config를 컨테이너에 맞게 변경해주고 reload 한다
cp ./nginx.${AFTER_COMPOSE_COLOR}.conf /etc/nginx/nginx.conf
sudo cp ./nginx.${AFTER_COMPOSE_COLOR}.conf /etc/nginx/nginx.conf
sudo nginx -s reload

# 이전 컨테이너 종료
Expand Down

0 comments on commit 28f50ee

Please sign in to comment.