Heroku Wildfly Buildpack + Postgres module
This is a Heroku Buildpack for running Wildfly AS.
Usage
- Set the Database env variable:
- DATABASE_URL # e.g. postgres://user:password@host:5432/db_name
- Put your WAR file(s) in
target/
and deploy.
Using with the Java buildpack
You can use the standard Heroku Java buildpack to compile your WAR file, and then have Wildfly run it:
$ heroku buildpacks:clear
$ heroku buildpacks:add heroku/java
$ heroku buildpacks:add https://github.com/codigo5/heroku-buildpack-wildfly
Then deploy your Maven project with a pom.xml
, Heroku will run the Java buildpack to compile it, and as long as you output a target/*.war
file the Wildfly buildpack will run it.