Skip to content

Commit 2c920c6

Browse files
committed
Update loading of production config
1 parent a62ba7e commit 2c920c6

File tree

3 files changed

+2
-21
lines changed

3 files changed

+2
-21
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ FROM openjdk:11-jdk-slim
2626
WORKDIR /fdp
2727

2828
ADD target/fdp-spring-boot.jar /fdp/app.jar
29-
ADD target/classes/application-production.yml /fdp/application-production.yml
29+
ADD target/classes/application-production.yml /fdp/application.yml
3030

31-
ENTRYPOINT java -jar app.jar --spring.profiles.active=production --spring.config.location=classpath:/application.yml,file:/fdp/application-production.yml
31+
ENTRYPOINT java -jar app.jar --spring.profiles.active=production --spring.config.location=classpath:/application.yml,classpath:/application-production.yml,file:/fdp/application.yml

src/main/resources/application-production.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ instance:
33

44
server:
55
port: 80
6-
7-
logging:
8-
config: classpath:log4j2-production.xml

src/main/resources/log4j2-production.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)