Posted over 3 years ago. Visible to the public.

Capistrano: Install capistrano-passenger

Our Rails deployments are run by passenger on the application servers, to automatically restart passenger workers after a deploy you should include the capistrano-passenger Archive Gem in your Gemfile by adding this line:

gem 'capistrano-passenger', require: false

And install it by calling bundle:

$ bundle

To actually be able to use the tasks this Gem provides you have to also require it in your Capfile like this:

# Include passenger tasks # This automatically sets up deploy:restart to run after :publishing is complete require 'capistrano/passenger'

As the comment says, just the presence of this line automatically calls deploy:restart and will restart your passenger workers after the :publishing task was successful.

Does your version of Ruby on Rails still receive security updates?
Rails LTS provides security patches for unsupported versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2).

Owner of this card:

Marius Schuller
Last edit:
11 months ago
by Marius Schuller
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Marius Schuller to opscomplete
This website uses short-lived cookies to improve usability.
Accept or learn more