Freeze Rails

by Melvin Ram

When developing a rails app, it’s a good idea to “freeze” your app. What this means is that you’re making a copy of rails in your RAILS_APP_ROOT/vendors/rails directory. This will help reduce your dependencies… just in case you deploy your app to a machine that does not have the version of Rails you used to develop it (older or newer.)

This article covers the topic really well: Softies on Rails: Freezing Your Rails Application.

One thing it doesn’t cover is how to freeze a specific version of rails. It’s pretty simple:

rake rails:freeze:gems VERSION=2.1.0

This will allow you to run your app against the version of rails your app was written for.

{ 2 trackbacks }

» Freeze Rails rails Blog
May 5, 2009 at 1:35 pm
Another rails Blog | Freeze Rails
May 5, 2009 at 2:02 pm

{ 0 comments… add one now }

Leave a Comment