Skip to content

Commit

Permalink
Update pom.xml and Procfile to support deploying to Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
sestevens committed Mar 2, 2020
1 parent bb4c741 commit fa0647b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ out/

### VS Code ###
.vscode/

### Heroku ###
.env
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: java -jar build/libs/braintree-p4p-sample-merchant-0.0.1-SNAPSHOT.jar
web: java $JAVA_OPTS -cp target/classes:target/dependency/* com.braintree.braintreep4psamplemerchant.SampleMerchantApplication

12 changes: 10 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals><goal>copy-dependencies</goal></goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit fa0647b

Please sign in to comment.