0.04
No commit activity in last 3 years
No release in over 3 years
Provide deployment tasks for puma
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Capistrano::Puma

Capistrano integration tasks for the puma web server.

These tasks assume that you are using the jungle tool scripts.

This is an extension of the puma tasks from Deploying a Rails app on Nginx/Puma with Capistrano of Tommy Chheng.

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'capistrano-puma', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-puma

Usage

Use it in your deploy.rb as:

require 'capistrano/puma'

Please ensure, that you've set the application property to identify the application to manage, e.g.:

set :application, 'foobar'

cap puma:start   # => /etc/init.d/puma start foobar

On inclusion the following capistrano callbacks are inserted:

after "deploy:start",          "puma:start"
after "deploy:stop",           "puma:stop"
after "deploy:restart",        "puma:restart"
after "deploy:create_symlink", "puma:after_symlink"

Or you just call it by hand like:

cap puma:status

Available tasks

cap puma:start      # Start puma instance
cap puma:stop       # Stop puma instance
cap puma:restart    # Restart puma instance
cap puma:status     # Status of puma instance
cap puma:overview   # Status of all puma instances

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