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

Capistrano extension for Apache tasks - MOVED TO =>

License

Notifications You must be signed in to change notification settings

nexylan/capistrano-apache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capistrano::Apache

Capistrano extension for Apache 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-apache

The gem name is still the same (capistrano-apache), upgrading from v1 to v2 or higher will move to the new one automatically.

Therefore, this repository will not receive any update anymore.

Installation

Add this line to your application's Gemfile:

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

And then execute:

bundle

Or install it yourself as:

gem install capistrano-apache

Usage

Require the module in your Capfile:

require 'capistrano/apache'

capistrano/apache comes with 5 tasks:

  • apache:reload
  • apache:force_reload
  • apache:restart
  • apache:stop
  • apache:zap

You can execute the task on command line:

cap production apache:reload

And configure it on your deploy.rb file:

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

Configuration

Configurable options, shown here with defaults:

set :apache_roles, :all

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

SSHKit.config.command_map[:apache] = 'sudo /etc/init.d/apache2'