Skip to content

kilhage/capistrano-supervisor

Repository files navigation

Capistrano::Supervisor

Gem Version

supervisord support for Capistrano 3.x

Makes it possible to reload/restart supervisord during deploy

Installation

Add this line to your application's Gemfile:

gem 'capistrano', '~> 3.1.0'
gem 'capistrano-supervisor'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-supervisor

Usage

Require in Capfile to use the default task:

require 'capistrano/supervisor'

Configure in deploy.rb to execute one of the tasks:

after 'deploy:published', 'supervisord:reload'
after 'deploy:published', 'supervisord:restart'

You can also run it in isolation: cap production supervisord:reload or cap production supervisord:restart

Configurable options:

set :supervisord_reload_roles,  :app
set :supervisord_restart_roles, :app

Development

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in capistrano-supervisor.gemspec, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it
  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

License

The gem is available as open source under the terms of the MIT License.

www.glooby.com www.glooby.se

About

Capistrano extension for supervisor

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published