Skip to content

Commit af08155

Browse files
committed
Move port config to application.properties
1 parent 30c6be0 commit af08155

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Procfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: java $JAVA_OPTS -Dserver.port=$PORT -jar target/java-getting-started-1.0.jar
1+
web: java -jar target/java-getting-started-1.0.jar

src/main/resources/application.properties

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ spring.thymeleaf.mode=HTML
77
logging.level.org.springframework=INFO
88

99
spring.profiles.active=production
10+
11+
server.port=${PORT}

0 commit comments

Comments
 (0)