Skip to content

Commit 5405cca

Browse files
Update Comparison Spring sample to support integration with Heroku
1 parent 82949c8 commit 5405cca

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

Demos/Spring/Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: java -jar target/comparison-spring-22.3.0.jar

Demos/Spring/configuration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ server:
55
connector:
66
# Changing port is available for embedded server only
77
# Is is not possible to change port for deploying application on external server
8-
port: 8080
8+
port: ${PORT:8080}
99

1010

1111
################################################

Demos/Spring/src/main/resources/defaultConfiguration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ server:
55
connector:
66
# Changing port is available for embedded server only
77
# Is is not possible to change port for deploying application on external server
8-
port: 8080
8+
port: ${PORT:8080}
99

1010

1111
################################################

Demos/Spring/system.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
java.runtime.version=1.8
2+

0 commit comments

Comments
 (0)