Skip to content

Commit d73bebc

Browse files
committed
heroku
1 parent 0f41c67 commit d73bebc

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web java -Dserver.port=$PORT $JAVA_OPTS -jar target/app.jar -Dspring.profiles.active=heroku
1+
web java -Dserver.port=$PORT $JAVA_OPTS -jar target/green-dog-delivery-1.0.0-SNAPSHOT.jar -Dspring.profiles.active=heroku

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55

66
<groupId>com.boaglio.casadocodigo</groupId>
7-
<artifactId>green-doog-delivery</artifactId>
7+
<artifactId>green-dog-delivery</artifactId>
88
<version>1.0.0-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010

src/main/resources/application-heroku.properties

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
#
66
# jpa
77
spring.jpa.show-sql=true
8-
spring.datasource.url= jdbc:mysql://localhost:3306/greendogdelivery
9-
spring.datasource.username=greendogdelivery
10-
spring.datasource.password=greendogdelivery
8+
spring.datasource.url=${CLEARDB_DATABASE_URL}
9+
spring.datasource.maxActive=10
10+
spring.datasource.maxIdle=5
11+
spring.datasource.minIdle=2
12+
spring.datasource.initialSize=5
13+
spring.datasource.removeAbandoned=true
1114
spring.jpa.hibernate.ddl-auto=create-drop
1215

1316
#rest

0 commit comments

Comments
 (0)