Capistrano Remote Cache Easter Party ’08

Thankfully we all survived Easter this year. To celebrate the resurrection of our savior we resurrected our servers into a new cluster at Engine Yard. The new cluster has plenty of room for us to grow as we need more resources. We didn’t kill our servers on Good Friday but we did have two hours of easter downtime right before midnight as we copied the database.

We discovered some new deployment recipes in the process.

Engine Yard has a gem eycap that allows remote caching and dramatically speeds up deployment for our plugin laden application. It works by checking out our code on the remote system. For every deploy the code is updated and then copied minus the .svn directories. That means an entire svn checkout is not needed!

First install the gem:

gem install eycap –source http://gems.engineyard.com

Then add this to your deploy.rb:

require ‘eycap/recipes’

set :deploy_via, :filtered_remote_cache

set :repository_cache, “/var/cache/somewhere”

The license included says anyone who has the software can use it so I think I’m allowed talk about it. Enjoy.

images.jpeg

Advertisements

2 Responses to Capistrano Remote Cache Easter Party ’08

  1. T. says:

    Wow. This is great. Had you posted this tomorrow I would have thought you were foolin’ us!

  2. Luke Melia says:

    We recently moved to this at EngineYard as well, and I was blown away by how much faster it makes deployments. Good stuff.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: