Introduce deployment profiles as a cheap way for multi-tenancy

This commit is contained in:
2019-07-08 23:30:35 +02:00
parent 29096f4eba
commit 6b7fdb126a
8 changed files with 24 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
spring.datasource.url=jdbc:postgresql://localhost/financer_mk
spring.datasource.username=financer_mk
spring.datasource.password=financer_mk
financer.mailRecipients[0]=marius@kleberonline.de

View File

@@ -0,0 +1,5 @@
spring.datasource.url=jdbc:postgresql://localhost/financer_nm
spring.datasource.username=financer_nm
spring.datasource.password=financer_nm
financer.mailRecipients[0]=niklas@mueller.com

View File

@@ -1,11 +1,8 @@
spring.flyway.locations=classpath:/database/postgres,classpath:/database/common
# Placeholder @db.name@ maps to the property db.name in the server POM.
# Its default value is 'financer'
# Enables easy configuration of DB name/user to use at build time
spring.datasource.url=jdbc:postgresql://localhost/@db.name@
spring.datasource.username=@db.name@
spring.datasource.password=@db.name@
spring.datasource.url=jdbc:postgresql://localhost/financer
spring.datasource.username=financer
spring.datasource.password=financer
# See https://github.com/spring-projects/spring-boot/issues/12007
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true

View File

@@ -5,6 +5,7 @@
spring.profiles.active=@activeProfiles@
# Only valid for embedded Tomcat
server.servlet.context-path=/financer-server
server.port=8089
@@ -34,7 +35,7 @@ financer.state=sl
financer.dateFormat=dd.MM.yyyy
# A collection of email addresses that should receive mails from financer
financer.mailRecipients[0]=marius@kleberonline.de
financer.mailRecipients[0]=
# The from address used in emails send by financer
financer.fromAddress=financer@77zzcx7.de