Repository navigation
release: develop-demo 운영 반영 - #366
Conversation
prod 배포 시 nginx/conf.d/active.conf(현재 blue/green 중 어느 쪽이 live인지 기록하는 상태 파일)가 저장소 안에 있어서, 매 배포마다 "Sync production deployment configuration" 스텝이 git에 커밋된 초기값(blue)으로 덮어써버리는 문제가 있었음. 그 결과 deploy.sh는 매번 최초 배포로 착각해 항상 blue로만 배포하고, 직전에 떠있던 green 컨테이너는 정리되지 않고 방치됐음 (실질적으로 blue/green 전환이 동작하지 않던 원인). - nginx/conf.d/active.conf → active.conf.default로 이름 변경 (git에는 초기 seed 값만 남기고, 매 배포 때 그대로 덮어써짐) - 실제 상태 파일은 저장소 밖 $HOME/.deploy-state/nook-prod/active.conf 에 두고, 최초 1회만 active.conf.default로 시딩. 이후엔 서버 위 실제 상태가 배포 때마다 유지됨 - docker-compose.prod.yml의 nginx 볼륨 마운트를 ACTIVE_CONF_PATH 환경변수 기반으로 변경 (deploy.sh가 export)
…tate [FIX] blue/green active.conf가 배포마다 초기화되는 문제 수정
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
📄 작업 내용 요약
develop-demo에 반영된 blue/green 배포 상태 파일 버그 수정을 production에 반영합니다.
active.conf)이 git 초기값으로 덮어써져서 실질적으로 blue/green 전환이 동작하지 않던 문제 수정 ([FIX] blue/green active.conf가 배포마다 초기화되는 문제 수정 #365)$HOME/.deploy-state/nook-prod/active.conf)으로 이동, 최초 1회만 시딩하고 이후엔 서버 상태 유지📎 Issue 번호
✅ 작업 목록
📝 기타 참고사항
cd-prod.yml이 prod로 배포하고(재빌드 없음, dev 이미지 승격),release-prod.yml이 병합 시각 기준 태그 + GitHub Release를 자동 생성합니다.