Description
capistrano-puma is a Ruby gem that adds Puma server management to Capistrano, the tool used to deploy Ruby applications. It sets up systemd services for Puma and supports zero-downtime deployments with Puma 5.1 and later. Its hooks run as part of a Capistrano deploy, and you can stop them loading by passing false to the load_hooks option. Install the gem after your version manager, such as rbenv, rvm or chruby, is loaded so it finds the right Ruby. Puma configuration lives in config/puma.rb, or config/puma/<environment>.rb, and is checked into your repository. Version 6.0 changed several things: the gem no longer generates puma.rb, so you create it yourself and add it to linked_files in deploy.rb; the default bind address was removed, so you must set one; and services are now user-specific, stored under ~/.config/systemd/user/. After upgrading, run the Puma install task again. The README includes migration steps and points to a complete example app built on Rails 8 with Puma 6, systemd socket activation, rbenv and Nginx.…
Highlights
- Puma systemd service management
- Zero-downtime deployments for Puma 5.1 and later
- Works with rbenv, rvm and chruby
- Puma config kept in your repository
- Migration steps from version 5 to 6
Ratings & Reviews
No ratings yet
Be the first to rate Capistrano Puma.
People also visit
Capistrano Puma FAQ
What does capistrano-puma do?
It adds Puma management to Capistrano deploys. It manages systemd services for Puma and supports zero-downtime deployments for Puma 5.1 and later.
How do I install it?
Add the gem to your Gemfile, for example gem 'capistrano3-puma' in the development group, then run bundle. The README also shows installing it straight from GitHub.
What changed in version 6?
The gem no longer generates config/puma.rb, so create it and add it to linked_files. You must set the bind address yourself, and services are now user-specific, so run the install task again after upgrading.
Does it work with rbenv or rvm?
Yes. Install the gem after the version manager library is included so the right Ruby is picked up.
Is there an example app?
Yes. The README links a capistrano-example-app that shows Rails 8 deployment with Puma 6, systemd socket activation, zero-downtime deploys, rbenv and Nginx.
What are the best Capistrano Puma alternatives?
Popular alternatives to Capistrano Puma include Capistrano Sidekiq, Server Compass and Release It. See all Capistrano Puma alternatives







