What are the benefits & drawbacks of installing things into the @global gemset in RVM?
Let's say I want to install different versions of rails on the same server. I then want the ability to install multiple ruby apps on the same server, with the least duplication of files to save on disk space. However, I still want to avoid dependency problems, gem conflict issues and other problems.
Let's also assume that each app has extra gems it needs that I only want in it's local project gemset.
Would I be better off:
- Installing both Rails 3 and Rails 2 gems into the
@global
gemset- ...And use project-local gemsets for their gems...
- Installing Rails 3 into a
@rails3
gemset, and Rails 2 into a@rails2
set... then cloning for each project I need?
For example:rvm use ree@rails3 && rvm gemset export rails3.gems
rvm use ree@rails2 && rvm gemset export rails2.gems
rvm use --create ree@project1-on-rails3 && rvm gemset import rails3.gems
- Install more project-local gems here...
rvm use --create ree@project2-on-rails2 && rvm gemset import rails2.gems
- Install more project-local gems here...
- Something else entirely...