# Freeze\_gems not freezing all gems?

**URL:** <https://www.ruby-forum.com/t/freeze-gems-not-freezing-all-gems/58508>\
**Category:** Rails\
**Created:** [April 22, 2006, 9:15am UTC](https://www.ruby-forum.com/t/freeze-gems-not-freezing-all-gems/58508 "2006-04-22T09:15:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nauhaie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@nauhaie](https://www.ruby-forum.com/u/nauhaie)\
**Post date:** [April 22, 2006, 9:15am UTC](https://www.ruby-forum.com/t/freeze-gems-not-freezing-all-gems/58508/1 "2006-04-22T09:15:14Z")

</div>

Hi,

I am currently experimenting on rake freeze\_gems and there is something  
I do not understand.

When I freeze\_gems my app, it puts Rails in the /vendor/ directory,  
which works. But what about all other gems I have installed (for example  
Unicode, sqlite support, mysql support and so on)?

The aim of freezing is to be independant of the versions of the ISP, but  
it seems that the server still needs to have extra gems installed…  
Huh?

Thank you!

---

<div class="post-metadata">

**Author:** ![nauhaie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@nauhaie](https://www.ruby-forum.com/u/nauhaie)\
**Post date:** [April 22, 2006, 1:07pm UTC](https://www.ruby-forum.com/t/freeze-gems-not-freezing-all-gems/58508/2 "2006-04-22T13:07:14Z")

</div>

Nauhaie wrote:

> Hi,
> 
> I am currently experimenting on rake freeze\_gems and there is something  
> I do not understand.
> 
> When I freeze\_gems my app, it puts Rails in the /vendor/ directory,  
> which works. But what about all other gems I have installed (for example  
> Unicode, sqlite support, mysql support and so on)?
> 
> The aim of freezing is to be independant of the versions of the ISP, but  
> it seems that the server still needs to have extra gems installed…  
> Huh?
> 
> Thank you!

As far as I know, freeze\_gems only deals with the rails gems. You still  
remain dependant on all other ruby gems.

---

<div class="post-metadata">

**Author:** ![nauhaie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@nauhaie](https://www.ruby-forum.com/u/nauhaie)\
**Post date:** [April 22, 2006, 1:58pm UTC](https://www.ruby-forum.com/t/freeze-gems-not-freezing-all-gems/58508/3 "2006-04-22T13:58:39Z")

</div>

Hey Nauhaie, I believe the below link should allow you to achieve your  
goal:

[http://nubyonrails.com/articles/2005/12/22/freeze-other-gems-to-rails-lib-directory](http://nubyonrails.com/articles/2005/12/22/freeze-other-gems-to-rails-lib-directory)

It would be nice if this step was integrated into ‘rake freez\_gems’.  
Thus, I have following question:

What commands one must execute to deploy an application to a shared  
host?

-Conrad

---

<div class="post-metadata">

**Author:** ![nauhaie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@nauhaie](https://www.ruby-forum.com/u/nauhaie)\
**Post date:** [April 22, 2006, 8:27pm UTC](https://www.ruby-forum.com/t/freeze-gems-not-freezing-all-gems/58508/4 "2006-04-22T20:27:20Z")

</div>

Ok, I think freeze\_other\_gems will do the job!

Thank you a lot!
