Skip to content

Commit

Permalink
fix: nginx 설정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sjy2335 committed Nov 12, 2024
1 parent d0bc209 commit 5281280
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ jobs:
echo "${{ secrets.env }}" > .env
# 최신 이미지 가져오기
docker-compose pull
docker-compose pull console-server-blue console-server-green
# Nginx 시작 (재시작 포함)
docker-compose up -d nginx
Expand All @@ -79,14 +78,14 @@ jobs:
fi
echo "Waiting for Nginx to be ready..."
sleep 2
done
done
# Blue 인스턴스를 새 버전으로 준비
docker-compose up -d --no-deps console-server-blue
# Blue 인스턴스 헬스 체크
for i in {1..30}; do
if curl -s http://localhost | grep -q "Hello World!"; then
if curl -s http://localhost/api | grep -q "Hello World!"; then
echo "Blue container is ready"
break
fi
Expand Down

0 comments on commit 5281280

Please sign in to comment.