Skip to content

Commit 50b7b43

Browse files
committed
Add http health
1 parent 3dbbe3c commit 50b7b43

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
34
zipStoreBase=GRADLE_USER_HOME
45
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip

manifest.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,22 @@ applications:
33
- name: spring-music
44
memory: 1G
55
random-route: true
6-
buildpacks:
7-
- java_buildpack_offline
6+
7+
#uncomment next 2 lines to disable buildpack autodetect
8+
#buildpacks:
9+
#- java_buildpack_offline
10+
811
path: build/libs/spring-music-1.0.jar
12+
health-check-type: http
13+
health-check-http-endpoint: /actuator/health
914
env:
1015
JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{enabled: false}'
11-
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 11.+ } }'
16+
# JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 11.+ } }'
17+
18+
#Enable graceful shutdown to avoid 502 errors
1219
SPRING_APPLICATION_JSON: '{ "server.shutdown": "graceful", "spring.lifecycle.timeout-per-shutdown-phase": "10s" , "sever.max-keep-alive-requests": -1}'
1320

14-
#A side car example
21+
#A side car example, "command" can be anything that you ship with spring-music-1.0.jar
1522
#sidecars:
1623
#- name: connection-collector
1724
# process_types: [ 'web' ]

0 commit comments

Comments
 (0)