Freeze Rails
April 01, 2006
As soon as you deploy a rails app on the production server you should consider to "freeze" your Rails. That means to put the Rails framework in a subdirectory (vendor/rails) of your application.
As of Rails version 0.14.x you just need to run rake freeze_gems inside your app directory to unpack the current gems into vendor/rails.
Another way to achieve this is to check out the desired version into vendor/rails using svn.
Browse http://dev.rubyonrails.org/svn/rails/tags/ and check out the desired version using
stefan@www:~$ cd /path/to/your/app/vendor stefan@www:~$ svn co http://dev.rubyonrails.org/svn/rails/tags/rel_1-0-0/ \ rails
In case your application already is under version control using subversion (as i hope it is) you can set svn:external to fetch the framework into vendor/rails.
stefan@www:~$ cd /path/to/your/app/vendor stefan@www:~$ svn ps svn:externals \ "rails http://dev.rubyonrails.org/svn/rails/tags/rel_1-0-0/" .