On Aug 11, 4:25 pm, Tom Ha <[email protected]> wrote:
> Hi there,
>
> as far as I know, gems can be stored in 2 folders:
>
> 1. /usr/lib/ruby/gems/1.8/gems
> 2. app/vendor/gems
>
> When I install a gem, it automatically goes into the 1st folder.
>
> My questions are:
> - What are the reasons one should store the gems in the 2nd folder
> (app/...)?
> - Does it have anything to do with deployment/"portability"? If yes,
> how?
> - How should gems be put in there? Any special command or is copy/paste
> OK?
> - Do apps automatically find the correct location of the gems? Any
> config to do?
> - How are gems in app/vendor/gems updated? Using the normal gem update
> command?

Well the point behind the vendor-everything approach is that it's
really easy to roll things back and forward. If you roll out some new
code which means that for the first time your app requires gem blah
you don't need to remember to update/install that gem because it will
just happen magically when your source code is checked out. It's also
handy if you don't have the file system permissions to update the
system gems. There are rake tasks supplied by rails for managing this
stuff

Fred
>
> Background info:
> - I'm pretty much a n00b
> - I plan to deploy my app to slicehost.com (unless you guys know better
> solutions)
> - At slicehost, I will have access to the entire OS (Ubuntu)
>
> Thanks for any help with this!
> Tom
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to