< BACK

Capistrano saves you time

Another quick post. I’ve been using Capistrano for a few months now, it is a time saver. If you don’t know what the hell capistrano does, I’ll give you a quick example.

I use two servers, one for production and another one for development and I use git to sync code. On a Drupal site, when you make important changes is important to clear the cache. So this is what I would do without capistrano after a code change.

ssh my-production-server.com

cd /var/www

git pull

drush cc all

And this is what I do with capistrano from my local pc

cap deploy cc

cap deploy will do a git pull and cap cc will do a drush cc all but you can call both tasks in one command. Easy and it saves time.


Share this: