No commit activity in last 3 years
No release in over 3 years
Puma integration for Capistrano 3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.6
 Project Readme

Gem Version Dependencies

Capistrano::Puma

Manages puma with capistrano.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-puma-sic'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-puma-sic

Usage

Require in Capfile to use the default task:

require 'capistrano/puma'
require 'capistrano/puma/workers' # Optional: Adds worker tasks

Configurable options, shown here with defaults:

set :puma_roles,            :app
set :puma_env,              -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
set :puma_user,             -> { fetch(:app_user, nil) }
set :puma_conf,             -> { File.join(release_path, 'config', 'puma', "#{fetch(:stage)}.rb") }
set :puma_pid,              -> { File.join(shared_path, 'tmp', 'pids', 'puma.pid') }
set :puma_state,            -> { File.join(shared_path, 'tmp', 'pids', 'puma.state') }
set :puma_restart_strategy, 'phased-restart'

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/SICSoftwareGmbH/capistrano-puma.

License

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