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:
bundleOr install it yourself as:
gem install capistrano-fpmUsage
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:reloadAnd configure it on your deploy.rb file:
namespace :deploy do
after :finishing, 'fpm:reload'
after :rollback, 'fpm:reload'
endConfiguration
Configurable options, shown here with defaults:
set :fpm_roles, :allYou can also override the default php-fpm service command:
SSHKit.config.command_map[:fpm] = 'sudo /etc/init.d/php-fpm'