It's time for the long overdue final installment of our Capistrano 3 tutorial series. To recap the preceding parts have been:

Part 1
Secure SSH key based website deployment from Subversion using Capistrano 3
Part 2
Using Capistrano 3 for deploying PHP and other none Rails based websites

This installment will provide a more 'real world' example of using Capistrano to deploy a Drupal website. This allows us to illustrate how you might tailor a Capistrano deploy script to your own website.

This final instalment builds on what we've run through previously to demonstrate how you can tailor a Capistrano deploy script to fit your application. We've chosen a Drupal website as an example because:

  • Drupal is very popular.
  • There doesn't seem to be much by way of comprehensive 'how-tos' for combining Capistrano and Drupal.
  • We like using Drupal and so we already have a custom deploy script up our sleeves to write about.