Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A set of capistrano recipies for working with drupal

branch: master

Capistrano Drupal

This gem provides a number of tasks which are useful for deploying Drupal projects.

Credit goes to railsless-deploy for many ideas here.


# gem install capistrano-drupal


Open your application's Capfile and make it begin like this:

require 'rubygems'
require 'railsless-deploy'
require 'capistrano-drupal'
load    'config/deploy'

You should then be able to proceed as you would usually, you may want to familiarise yourself with the truncated list of tasks, you can get a full list with:

$ cap -T

Git Ignore

The deployment script expects that sites/default/files and sites/default/settings.php will not be checked into git. Add them to .gitignore in your project.


  • Split out the tasks into indivual files/modules
  • Use drush aliases
  • Support install profiles
  • Support composer
Something went wrong with that request. Please try again.