uareurapid / heroku-buildpack-wildfly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku Wildfly Buildpack

This is a Heroku Buildpack for running Wildfly AS attached to a PostgreSQL DB.

Usage

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/uareurapid/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.

This buildpack will download wildfly 10.1.0.Final, install the PostgreSQL driver and setup SMTP via a Gmail account.

Regarding the Gmail configuration, an additional file named "replace_email_config.sh" should be placed on the root folder of your repo. its contents should be more or less like this:

#!/usr/bin/env bash

#get the template path STANDALONE_XML=$1 GMAIL_USERNAME=$2 GMAIL_PASSWORD=$3 #replace config for sending emails (via gmail account) sed -i -e 's|||' $STANDALONE_XML

sed -i -e 's|||' $STANDALONE_XML

where GMAIL_USERNAME and GMAIL_PASSWORD should be config vars defined on your heroku app dashboard

About

License:MIT License


Languages

Language:Shell 100.0%