Skip to content

Commit fdce182

Browse files
committed
heroku setup
1 parent f40e550 commit fdce182

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

setenv.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
export PORT=5000
2-
export JAVA_OPTS='-Xmx300m -Xss512k -XX:CICompilerCount=2'
2+
export JAVA_OPTS='-Xmx300m -Xss512k -XX:CICompilerCount=2'
3+
export MAIL_HOST=sslout.df.eu
4+
export MAIL_PORT=465
5+
export MAIL_USERNAME=news@thomas-woehlke.de
6+
export MAIL_PASSWORD=gecgy.gKC8u3
7+
export MAIL_FROM=news@thomas-woehlke.de

src/main/resources/application.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ spring:
2020
enabled: true
2121
datasource:
2222
url: jdbc:postgresql://localhost:5432/simpleworklist
23-
#jdbcUrl: jdbc:postgresql://localhost:5432/simpleworklist
2423
username: simpleworklist
2524
password: simpleworklistpwd
2625
driverClassName: org.postgresql.Driver
27-
#driverClassName: com.impossibl.postgres.jdbc.PGDriver
2826
platform: POSTGRESQL
2927
jpa:
3028
show-sql: true
@@ -59,10 +57,10 @@ org:
5957
user:
6058
strengthBCryptPasswordEncoder: 10
6159
mail:
62-
host: sslout.df.eu
63-
port: 465
64-
username: news@thomas-woehlke.de
65-
password: gecgy.gKC8u3
60+
host: ${MAIL_HOST}
61+
port: ${MAIL_PORT}
62+
username: ${MAIL_USERNAME}
63+
password: ${MAIL_PASSWORD}
6664
smtp:
6765
auth: true
6866
sslEnable: true
@@ -74,17 +72,17 @@ org:
7472
maxRetries: 5
7573
ttlEmailVerificationRequest: 86400000
7674
urlHost: localhost:8080
77-
mailFrom: news@thomas-woehlke.de
75+
mailFrom: ${MAIL_FROM}
7876
---
7977
spring:
8078
profiles: default
8179
datasource:
82-
url: jdbc:pgsql://localhost:5432/simpleworklist_default
80+
url: jdbc:postgresql://localhost:5432/simpleworklist_default
8381
---
8482
spring:
8583
profiles: developing
8684
datasource:
87-
url: jdbc:pgsql://localhost:5432/simpleworklist_developing
85+
url: jdbc:postgresql://localhost:5432/simpleworklist_developing
8886
jpa:
8987
hibernate:
9088
ddl-auto: update
@@ -93,7 +91,7 @@ spring:
9391
spring:
9492
profiles: travis
9593
datasource:
96-
url: jdbc:pgsql://localhost:5432/simpleworklist_travis
94+
url: jdbc:postgresql://localhost:5432/simpleworklist_travis
9795
continue-on-error: true
9896
jpa:
9997
show-sql: false
@@ -107,7 +105,7 @@ server:
107105
spring:
108106
profiles: testing
109107
datasource:
110-
url: jdbc:pgsql://localhost:5432/simpleworklist_testing
108+
url: jdbc:postgresql://localhost:5432/simpleworklist_testing
111109
jpa:
112110
show-sql: false
113111
hibernate:
@@ -143,7 +141,7 @@ logging:
143141
spring:
144142
profiles: qa
145143
datasource:
146-
url: jdbc:pgsql://localhost:5432/simpleworklist_qa
144+
url: jdbc:postgresql://localhost:5432/simpleworklist_qa
147145
continue-on-error: true
148146
jpa:
149147
show-sql: false

0 commit comments

Comments
 (0)