0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Executes php-fpm service tasks like reload or restart from Capistrano
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.1

Runtime

 Project Readme

Capistrano::FPM

Capistrano extension for PHP-FPM tasks

⚠️ This package has been moved to an official repository ⚠️

This page contains the documentation of the version 1 of this plugin. For future versions, please checkout this one: https://github.com/capistrano-plugins/capistrano-php-fpm

The gem name has changed to capistrano-php-fpm. The versions 1 and lower correspond to this repository.

Therefore, this repository will not receive any update anymore.

Installation

Add this line to your application's Gemfile:

gem 'capistrano', '~> 3.2'
gem 'capistrano-fpm'

And then execute:

bundle

Or install it yourself as:

gem install capistrano-fpm

Usage

Require the module in your Capfile:

require 'capistrano/fpm'

capistrano/fpm comes with 5 tasks:

  • fpm:reload
  • fpm:restart
  • fpm:start
  • fpm:stop
  • fpm:zap

You can execute the task on command line:

cap production fpm:reload

And configure it on your deploy.rb file:

namespace :deploy do
  after :finishing, 'fpm:reload'
  after :rollback, 'fpm:reload'
end

Configuration

Configurable options, shown here with defaults:

set :fpm_roles, :all

You can also override the default php-fpm service command:

SSHKit.config.command_map[:fpm] = 'sudo /etc/init.d/php-fpm'