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
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