Minimal Java project which can be deployed on Heroku
note: be aware of Heroku env variables:
DATABASE_URL
looks likepostgres:...
JDBC_DATABASE_URL
looks likejdbc:postgresql:...
Pay your attention to
Procfile
contents:- fully qualified path to the
main class
classpath
declaration
- fully qualified path to the
pom.xml
sections:<packaging>jar
<pluginns>maven-dependency-plugin...
- Http Server must start on the port, provided by Heroku's system environment variable
PORT
- file
MinimalWebApplication.java
- method
main
- file