Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#87] cicd: 무중단 배포 설정 (Blue Green 배포전략) #89

Merged
merged 5 commits into from
Aug 25, 2023

Conversation

kdomo
Copy link
Member

@kdomo kdomo commented Aug 25, 2023

연관 이슈

작업내용

  • EC2 내부에 Nginx에서 서비스가 정상적으로 실행되었는지 확인하기 위한 Health Check API 생성
  • server.port에 API_SERVER_PORT 환경변수 추가

스크립트 동작방식

  1. blue 서비스가 실행중인지 확인
  2. blue 서비스가 실행중이라면, green 서비스를 실행시키기 위한 환경변수 세팅
    green 서비스가 실행중이라면, blue 서비스를 실행시키기 위한 환경변수 세팅
    3.실행시키고자 하는 서비스 실행
    4.서비스가 정상적으로 실행되었는지 확인
    5.Nginx reload를 통해 새로 실행된 서비스를 바라보도록 설정
    6.기존에 실행중이였던 서비스 down

@kdomo kdomo added the 🌏 Deploy 배포 관련 label Aug 25, 2023
@kdomo kdomo self-assigned this Aug 25, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 25, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@kdomo kdomo merged commit e1f5cd7 into develop Aug 25, 2023
3 checks passed
@kdomo kdomo deleted the cicd/#87 branch August 25, 2023 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌏 Deploy 배포 관련
Projects
None yet
Development

Successfully merging this pull request may close these issues.

무중단 배포 설정 (Blue Green 배포전략)
1 participant