Community contributed extensions

Easy Deployment to Stax' Cloud

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

Usage

Create your application with Stax support:

play new appname --with=stax

You can also add Stax support for an existing application by editing application.conf:

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

When the module is present, war folders generated by Play will be ready for Stax. Just zip it and deploy it:

play war ./yourProject -o project --zip
stax app:deploy -a login/yourProject -u login -p pass project.war

Database

If you included Stax 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.url=jdbc:stax://yourDataBaseName
db.driver=com.staxnet.jdbc.Driver
db.user=login
db.pass=password
jpa.dialect=org.hibernate.dialect.MySQLDialect