Skip to content
This repository has been archived by the owner on Feb 11, 2018. It is now read-only.
/ capistrano-fpm Public archive

Capistrano extension for PHP-FPM tasks - MOVED TO =>

License

Notifications You must be signed in to change notification settings

nexylan/capistrano-fpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Capistrano extension for PHP-FPM tasks - MOVED TO =>

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages