This module helps you remotely deploy your Play! application.
- 0.1 (current) only works with Tomcat.
First, install the module from the Play! module repository like so:
play install cargo
Tell Play! that you want your application to use the cargo module by adding it to your conf/dependencies.yml
file. It might look like this:
require:
- play
- play -> cargo 0.1
Now run play dependencies
to install the module into your application.
Add the following parameters to your conf/application.conf
file
cargo.remote.username=tomcat
cargo.remote.password=password
cargo.tomcat.manager.url=http://localhost:8081/manager
The user’s must have manager’s rights.
See the following example : tomcat-users.xml
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="admin"/>
<role rolename="manager-gui"/>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="tomcat,admin,manager,manager-gui"/>
</tomcat-users>
Remotely deploy your play application
play cargo:deploy
Remotely undeploy your play application
play cargo:undeploy
Remotely redeploy your play application
play cargo:redeploy