Click on Add new application on your openshift home
Use the search input text to find the application server named "Wildfly Application Server 8.2.0.Final" (or newer)
Retrieve the Database connection string from the console
$ rhc set-env ELEPHANTSQL_MAX_CONNS=20
$ rhc set-env ELEPHANTSQL_URI=database-URL
you should distribute the connections towards your instances.
This means that if you are planning to scale horizontally, you should set ELEPHANTSQL_MAX_CONNS=max_allowed_conns / max_instances
Click on Add Postgresql 9.2 link in order to create a database cartridge. Please note that currently Alf.io supports only Postgresql on Openshift
Click on Add Cartridge link to create the cartridge
The application and the database cartridges have been successfully created but not yet linked each other. To do that, you must restart your application. Just click on Restart Application, as shown
$ git clone ssh://insert-repo-url-here/
$ cd application
$ git rm -rf pom.xml README.md src
$ cp /tmp/alfio-version.war deployments/ROOT.war
$ git commit -m "Look ma! I just installed alf.io!"
$ rhc set-env JAVA_OPTS_EXT="-Dactivemq.artemis.client.global.thread.pool.max.size=20 -Xmx384m" -n mydomain -a myapplication
$ git push
check the log
$ rhc tail -n mydomain -a myapplication -f wildfly/logs/alfio.log
and find the auto-generated password.
Then you can access the admin under