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.
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request