Skip to content

Commit e70db8f

Browse files
committed
heroku setup
1 parent ae3cbc4 commit e70db8f

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: java -jar target/simpleworklist.war -Dserver.port=$PORT --spring.profiles.active=prod
1+
web: java $JAVA_OPTS -jar target/dependency/webapp-runner.jar --port $PORT target/*.war --spring.profiles.active=prod

pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,20 @@
852852
<groupId>org.apache.maven.plugins</groupId>
853853
<artifactId>maven-dependency-plugin</artifactId>
854854
<executions>
855+
<execution>
856+
<phase>package</phase>
857+
<goals><goal>copy</goal></goals>
858+
<configuration>
859+
<artifactItems>
860+
<artifactItem>
861+
<groupId>com.github.jsimone</groupId>
862+
<artifactId>webapp-runner</artifactId>
863+
<version>9.0.19.0</version>
864+
<destFileName>webapp-runner.jar</destFileName>
865+
</artifactItem>
866+
</artifactItems>
867+
</configuration>
868+
</execution>
855869
<execution>
856870
<id>unpack-dependencies</id>
857871
<phase>package</phase>

src/main/resources/application.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
endpoints:
2+
health:
3+
sensitive: false
4+
endpoints:
5+
shutdown:
6+
enabled: false
17
server:
8+
port: ${PORT}
29
error:
310
path: /fehler
411
compression:

0 commit comments

Comments
 (0)