Welcome Guest | Login

Install and freeze your gems - newbie question

Hi, I've read the tutorial about it, but now that my app is up and running fine (thanks to the great support of the Hostingrailspeople!) I'm not 100% sure if I understand correctly. Specialy the part where I have to create a .gemsfolder in the root. From there on the tutorial states to

[~]# gem install gem_name -i ~/.gems

but I'm not very sure which gems I should install, and how exactly I can get to install/freeze rails itself. My app runs fine on the standardgems installed on Hostingrails, so was hoping for a sort of standardline that would put rails and the standardgems in my vendor-folder. I could of course try it, but I would hate to see my app stop for that reason. Maybe someone here can help me out on this one.

2007-01-16 11:41 AM

You only need to download a gem if - when you run 'gem list' - you don't see it show up.  

You can get away with just using the gems we have installed on the server.  But yes its smart to freeze in the ones you use by a simple 'gem unpack XXXXX' while in your vendor folder.  

2007-01-16 11:40 PM

I have a very simple app - no gems that aren't already in the list - but it still isn't working.

I do have Rails in the vendor/rails directory though.  Do I have to do anything to freeze rails there or???

Sorry, really clueless at this point.  Have gone through the tutorials and am getting:

Application error
Rails application failed to start properly

2007-05-05 08:41 AM

I guess you need to create a .gems directory in your root, where you'll download the gems required for your application and install it. You can refer our tutorials at the link: http://www.hostingrails.com/forums/wiki_thread/2

2007-05-05 09:13 AM

HostingRails Support
Is Rails considered a gem?  I know I can use Gem rails (right?) but what if I'm using rails in the vendor/rails directory?  Do I freeze rails?  Should I not use vendor/rails (that's called edge rails, right?)  Should I not do that?

In the thread: http://www.hostingrails.com/forums/wiki_thread/2

It says to execute this command: "gem install gem_name -i ~/.gems "

Should I use this for rails as well?  (i.e. gem install rails -i ~/.gems)?

Or is this command (gem install GEM_NAME -i ~/.gems) just intended to be used for extra gems that are in addition to the rails install?

2007-05-05 09:22 AM

>>>Is Rails considered a gem?
yes

>>>>I know I can use Gem rails (right?) 
ummm...I'm not sure what you mean.  rake freeze:gems ?  

>>>but what if I'm using rails in the vendor/rails directory?  Do I freeze rails? 
If rails is in rails/vendor that means you have already 'frozen' Rails.



>>> Should I not use vendor/rails (that's called edge rails, right?)  Should I not do that?
That is not edge rails.  That is frozen rails.  And frozen Rails is good.  



>>>>Should I use this for rails as well?  (i.e. gem install rails -i ~/.gems)?
no - if you want to freeze Rails, ssh into your account and cd /path/to/rails/app then

rake gems:freeze

or for another version besides the most recent stable

rake rails:freeze:edge TAG=rel_1-1-6

or for simply EDGE

rake rails:freeze:edge


>>>>>Or is this command (gem install GEM_NAME -i ~/.gems) just intended to be used for extra gems that are in addition to the rails install?
that is correct.



I hope that all made sense and helps.  Let me know if you have other questions.

Cheers,
~William




2007-05-05 10:23 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.