Skip to content

Commit

Permalink
test : 8082포트 테스트
Browse files Browse the repository at this point in the history
test : 8082포트 테스트
  • Loading branch information
dltjdgh0428 authored Mar 5, 2024
2 parents 3f2f614 + 653e137 commit 0af0625
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ ARG JAR_FILE=build/libs/*.jar
ARG PROFILES
ARG ENV
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-Dspring.profiles/active=${PROFILES}","-Dserver.env=${ENV}", "-jar" ,"app.jar"]ddd
ENTRYPOINT ["sh", "-c", "java -Dspring.profiles.active=${PROFILES} -Dserver.env=${ENV} -jar app.jar > log.out 2>&1"]
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public CMRespDto<?> handleRequest() {
responseData.put("serverAddress", serverAddress);
responseData.put("serverPort", serverPort);
responseData.put("env", env);
return new CMRespDto<>(HttpStatus.OK, null, "통신 성공");
return new CMRespDto<>(HttpStatus.OK, env, "통신 성공");
}

@GetMapping("/health")
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spring:
config:
activate:
on-profile: green

security:
oauth2:
client:
Expand Down

0 comments on commit 0af0625

Please sign in to comment.