Skip to content

release: develop-demo 운영 반영 - #366

Merged
JiwonLee42 merged 2 commits into
productionfrom
develop-demo
Sep 9, 2026
Merged

JiwonLee42 merged 2 commits into
productionfrom
develop-demo

Conversation

@JiwonLee42

@JiwonLee42 JiwonLee42 commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

📄 작업 내용 요약

develop-demo에 반영된 blue/green 배포 상태 파일 버그 수정을 production에 반영합니다.


📎 Issue 번호

  • closed #

✅ 작업 목록

  • 기능 구현
  • 코드 리뷰 반영
  • 테스트 코드 작성
  • 문서 업데이트

📝 기타 참고사항

  • DB 마이그레이션 없음, 환경변수 변경 없음
  • 머지되면 cd-prod.yml이 prod로 배포하고(재빌드 없음, dev 이미지 승격), release-prod.yml이 병합 시각 기준 태그 + GitHub Release를 자동 생성합니다.

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가 배포마다 초기화되는 문제 수정
@JiwonLee42 JiwonLee42 added the release Production release PR label Sep 9, 2026
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 4aa345fa-fbf7-46e7-b586-9274dbe6e2f9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JiwonLee42 JiwonLee42 self-assigned this Sep 9, 2026
@JiwonLee42
JiwonLee42 merged commit f9a8d67 into production Sep 9, 2026
3 checks passed
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Overall Project 79.58% 🍏

There is no coverage information present for the Files changed

This branch was successfully deployed

2 active deployments
prod — 2daa39a5 Deployed Sep 9, 2026 by JiwonLee42 via promote-and-deploy #7
dev — 2daa39a5 Deployed Sep 9, 2026 by JiwonLee42 via build-and-deploy #50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Production release PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant