Skip to content

Commit 4a5c6c2

Browse files
authored
infra: 무중단 배포 구성
- 엔드포인트에서 HTTP 200을 응답할 경우 서버 실행이 완료된 것으로 판단 - Blue/Green 배포 스크립트 작성(서버 내부)
1 parent 92b71fe commit 4a5c6c2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package dmu.dasom.api.global.healthcheck;
2+
3+
import io.swagger.v3.oas.annotations.tags.Tag;
4+
import org.springframework.http.ResponseEntity;
5+
import org.springframework.web.bind.annotation.GetMapping;
6+
import org.springframework.web.bind.annotation.RestController;
7+
8+
@RestController
9+
@Tag(name = "health-check", description = "서버 상태 체크")
10+
public class HealthCheck {
11+
@GetMapping("/api/health-check")
12+
public ResponseEntity<Void> healthCheck() {
13+
return ResponseEntity.ok().build();
14+
}
15+
}

0 commit comments

Comments
 (0)