Posted about 1 month 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 can include the capistrano-passenger Gem in your Gemfile by adding this line:

Copy
gem 'capistrano-passenger', require: false

And install it by calling bundle:

Copy
$ bundle

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

Copy
# 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.

Owner of this card:

Avatar
Marius Schuller
Last edit:
about 1 month ago
by Stefan Langenmaier
Posted by Marius Schuller to opscomplete
This website uses cookies to improve usability and analyze traffic.
Accept or learn more