# Best way to freeze Rails?

**URL:** <https://www.ruby-forum.com/t/best-way-to-freeze-rails/147521>\
**Category:** Rails\
**Created:** [September 2, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/best-way-to-freeze-rails/147521 "2008-09-02T19:12:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddancer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Post date:** [September 2, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/best-way-to-freeze-rails/147521/1 "2008-09-02T19:12:38Z")

</div>

Is there a best way to freeze Rails apps these days? WRT the github  
hosting. Bear in mind I’m still learning my around Git.

I tried:  
git clone git://github.com/rails/rails.git  
git checkout 2-1-stable

but it didn’t seem to work, since “head railties/CHANGELOG” showed the  
2.1.1 changelog. In addition a “git pull” caused a list of merge  
errors.

So I found a different approach:  
cd (RAILS\_ROOT)/vendor  
wget [http://github.com/rails/rails/tarball/v2.1.0](http://github.com/rails/rails/tarball/v2.1.0)  
tar xvzf rails-rails-71528b1825ce5184b23d09f923cb72f4073ce8ed.tar.gz  
mv rails-rails-71528b1825ce5184b23d09f923cb72f4073ce8ed rails  
rm rails-rails-71528b1825ce5184b23d09f923cb72f4073ce8ed.tar.gz

While the latter works cleanly, it seems a bit clunky. Wondering if  
maybe there’s an elegant Git solution that I’m just not aware of.

thank you kindly,

---

<div class="post-metadata">

**Author:** ![ddancer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Post date:** [September 2, 2008, 9:31pm UTC](https://www.ruby-forum.com/t/best-way-to-freeze-rails/147521/2 "2008-09-02T21:31:38Z")

</div>

On Sep 2, 12:11 pm, Andy K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a best way to freeze Rails apps these days? WRT the github  
> hosting. Bear in mind I’m still learning my around Git.

rake rails:freeze:gems should still work, afaik.

Jeff
