Community contributed extensions

CloudBees [email protected] Deployment

CloudBees [email protected] is a cloud hosting service for Java/JVM applications. While it is possible to run a Play application on CloudBees without the help of this module, using it will automate some of the tasks you have to do to deploy on CloudBees.

Usage

Create your application with CloudBees [email protected] support:

play new appname --with=cloudbees

You can also add CloudBees [email protected] support for an existing application by editing application.conf:

module.cloudbees=${play.path}/modules/cloudbees

Database

If you included CloudBees support when you created your application, the file application.conf contains sample parameters for the database settings. Otherwise, here is how you configure it:

db=java:/comp/env/jdbc/yourProject
db.url=jdbc:stax://yourDataBaseName
db.driver=com.staxnet.jdbc.Driver
db.user=login
db.pass=password
jpa.dialect=org.hibernate.dialect.MySQLDialect

Deployment

To deploy to CloudBees [email protected] run

play bees:app:deploy appname --key your apikey --secret your secret \
	--app-domain your account name
	--app-name name to deploy under


To make it easier to deploy, those fields can be put in the projects application.conf file

bees.key=your apikey
bees.secret=your secret
bees.domain=your domain
bees.name=your app name