Skip to content

Commit

Permalink
👷 Ci : ci/cd 파이프라인 필요한 파일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
CYY1007 committed Sep 14, 2023
1 parent 2c72100 commit 3e14886
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .ebextension/00-makeFiles.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
files:
"/sbin/appstart" :
mode: "000755"
owner: webapp
group: webapp
content: |
#!/usr/bin/env bash
JAR_PATH=/var/app/current/application.jar

# run app
killall java
java -Dfile.encoding=UTF-8 -jar $JAR_PATH
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: appstart
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ dependencies {
tasks.named('test') {
useJUnitPlatform()
}

jar {
enabled = false
}
18 changes: 18 additions & 0 deletions src/main/java/briefing/root/api/RootApi.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package briefing.root.api;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
@RequiredArgsConstructor

public class RootApi {

@GetMapping("/")
public String healthCheck(){
return "I'm healthy!";
}
}

0 comments on commit 3e14886

Please sign in to comment.