Skip to content

dgouyette/play-cargo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

This module helps you remotely deploy your Play! application.

Roadmap

  • 0.1 (current) only works with Tomcat.

Installation

First, install the module from the Play! module repository like so:

play install cargo

Prepare your Play! application

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.

Configure remote access

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>

Available commands :

Remotely deploy your play application

play cargo:deploy

Remotely undeploy your play application

play cargo:undeploy

Remotely redeploy your play application

play cargo:redeploy

About

Cargo module to deploy remotely playframework application

Resources

Stars

Watchers

Forks

Packages

No packages published