Skip to content

Commit

Permalink
Add Procfiles for Heroku cloud deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jflamy committed Apr 17, 2019
1 parent 8f353ba commit e668dac
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 18 deletions.
1 change: 1 addition & 0 deletions owlcms/src/main/assembly/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: java -D"server.port"=$PORT -jar ${project.artifactId}-${project.version}.jar
1 change: 1 addition & 0 deletions owlcms/src/main/assembly/demoProcfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: java -D"server.port"=$PORT -DdemoMode=true -jar ${project.artifactId}-${project.version}.jar
53 changes: 35 additions & 18 deletions owlcms/src/main/assembly/zip.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,36 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id></id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>${project.artifactId}.exe</include>
<include>${project.artifactId}-${project.version}.jar</include>
</includes>
</fileSet>
</fileSets>
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id></id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>${project.artifactId}.exe</include>
<include>${project.artifactId}-${project.version}.jar</include>
</includes>
</fileSet>
</fileSets>
<files>
<file>
<source>${project.basedir}/src/main/assembly/Procfile</source>
<outputDirectory>/</outputDirectory>
<filtered>true</filtered>
</file>
<file>
<source>${project.basedir}/src/main/assembly/demoProcfile</source>
<outputDirectory>/</outputDirectory>
</file>
<file>
<source>NOTICE.txt</source>
<outputDirectory>/</outputDirectory>
<filtered>true</filtered>
</file>
</files>
</assembly>

0 comments on commit e668dac

Please sign in to comment.