-
Notifications
You must be signed in to change notification settings - Fork 3
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
[BE] feat: 무중단 배포 구축, 헬스체크 API 추가 #683
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
50b7dc1
chore: dev 서버 CD 스크립트 무중단 배포 구축
takoyakimchi d316d04
feat: 헬스체크 API 생성
takoyakimchi 8b635fd
chore: H2 데이터소스 여러 프로세스가 공유할 수 있도록 변경
takoyakimchi 340014a
chore: dev에서 actuator 미사용
takoyakimchi 1f4be2c
chore: 환경변수 주입 이후 run하도록 수정
takoyakimchi 1a09287
chore: test 브랜치 모든 push 러너가 잡도록 수정
takoyakimchi 5f9713a
chore: backend 폴더만 CD 돌게 숮어
takoyakimchi 40d10ef
chore: develop에 push할 때만 dev CD가 돌도록 수정
takoyakimchi 197b9ba
chore: 불필요한 주석 및 env 주입 삭제
takoyakimchi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
backend/src/main/java/com/happy/friendogly/healthcheck/HealthCheckController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.happy.friendogly.healthcheck; | ||
|
||
import org.springframework.core.env.Environment; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
@RequestMapping("/health-check") | ||
public class HealthCheckController { | ||
|
||
private final Environment environment; | ||
|
||
public HealthCheckController(Environment environment) { | ||
this.environment = environment; | ||
} | ||
|
||
@GetMapping("/port") | ||
public String port() { | ||
return environment.getProperty("local.server.port"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
예리했따