Skip to content

Commit f40e550

Browse files
committed
heroku setup
1 parent da558b7 commit f40e550

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

Procfile

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

pom.xml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@
817817
</build>
818818
</profile>
819819
<profile>
820-
<id>prod</id>
820+
<id>heroku</id>
821821
<build>
822822
<plugins>
823823
<plugin>
@@ -827,7 +827,7 @@
827827
<layout>WAR</layout>
828828
<mainClass>${start-class}</mainClass>
829829
<profiles>
830-
<profile>prod</profile>
830+
<profile>heroku</profile>
831831
</profiles>
832832
</configuration>
833833
<executions>
@@ -847,7 +847,6 @@
847847
</execution>
848848
</executions>
849849
</plugin>
850-
851850
<plugin>
852851
<groupId>org.apache.maven.plugins</groupId>
853852
<artifactId>maven-dependency-plugin</artifactId>
@@ -871,16 +870,9 @@
871870
<phase>package</phase>
872871
<goals>
873872
<goal>analyze-only</goal>
874-
<!--
875-
<goal>analyze-report</goal>
876-
<goal>unpack-dependencies</goal>
877-
-->
878873
<goal>build-classpath</goal>
879874
</goals>
880875
<configuration>
881-
<!--
882-
<includes>**/*.class,**/*.properties</includes>
883-
-->
884876
<outputDirectory>${project.build.directory}/classes</outputDirectory>
885877
<overWriteReleases>false</overWriteReleases>
886878
<overWriteSnapshots>true</overWriteSnapshots>
@@ -909,7 +901,7 @@
909901
<artifactId>maven-surefire-plugin</artifactId>
910902
<configuration>
911903
<systemPropertyVariables>
912-
<spring.profiles.active>prod</spring.profiles.active>
904+
<spring.profiles.active>heroku</spring.profiles.active>
913905
</systemPropertyVariables>
914906
<skipTests>true</skipTests>
915907
</configuration>

src/main/resources/application.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,9 @@ logging:
178178
impl: DEBUG
179179
---
180180
spring:
181-
profiles: prod
181+
profiles: heroku
182182
datasource:
183183
url: jdbc:postgresql://localhost:5432/simpleworklist
184-
#url: jdbc:pgsql://localhost:5432/simpleworklist
185184
continue-on-error: true
186185
jpa:
187186
show-sql: false
@@ -211,7 +210,6 @@ org:
211210
urlHost: simpleworklist.herokuapp.com
212211
logging:
213212
config: classpath:logback.xml
214-
#file: logging-prod.log
215213
level:
216214
org:
217215
woehlke:

0 commit comments

Comments
 (0)