gigfork / jdeployer

To test deployment of JEE apps with Capistrano, Maven and JRuby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple JavaEE6 app to test deployment with Capistrano

#If you are a Java programmer

  1. Install Ruby using RVM or RBENV (Ruby 1.9.3 is preferred)
  2. Run "gem install capistrano"
  3. Go to your Java project root directory and run "capify"
  4. This will create the capistrano config file.
  5. Copy the contents of this project's config/deploy.rb to your config/deploy.rb
  6. Change the variables file according to your machine
  7. Make sure Tomcat is running
  8. Make sure Tomcat manager role/s are configured as given here - http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Configuring_Manager_Application_Access

In your tomcat-users.xml there should be something like -

user username="tomcat" password="tomcat" roles="manager-gui"

user username="tomcatt" password="tomcatt" roles="manager-script"

Finally - Run "cap local deploy"

To run a specific version "cap -S revision=FULL-GIT-SHA local deploy"

Note

You can use this project as a sample Java project to start things off

You can add more environments by editing the config/deploy.rb file and adding code like the "task :local do ... end" block

About

To test deployment of JEE apps with Capistrano, Maven and JRuby