Repository is archived
No commit activity in last 3 years
No release in over 3 years
Capistrano 3 plugin that handles updating a deployed artifact & Jetty.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

 Project Readme

Capistrano::Jetty

Gem Version

This gem provides support in Capistrano 3.x for copying a deployed artifact into Jetty’s webapps directory, then restarting Jetty.

Plays nicely with capistrano-scm-jenkins.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-jetty'

And then execute:

$ bundle

Usage

This Gem requires that your deploy user have passwordless sudo rights to run service jetty restart. See Capistrano’s Authorisation docs for a simple example.

In Capfile:

require 'capistrano-jetty/jetty'

In your config/deploy.rb:

# Filename to grab from your current_path & copy to
set :deployed_artifact_filename, "#{fetch(:application)}.war"

# Path to your Jetty webapps directory
set :jetty_webapps_path, '/usr/share/jetty/webapps'

Contributing

  1. Fork it ( http://github.com/evertrue/capistrano-jetty/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request