It seems that on development machines (like on the Macbook), if we use bundle install --deployment
, all the gems will be installed into the vendor/bundle
folder and it just use more disk space if we have multiple Rails 3 projects (some project just for testing Rails 3). If it is not --deployment
, then the gems will be in the "generic" folder instead of inside the project folder, and so can be shared across projects. Is this true?
Another thing is, do we need to add all files under vendor/bundle
to our repository and push it? It seems that if we do it, we just jam up the repo, because if we don't, all the appropriate gems will be installed by bundle install
using all the gems specified in Gemfile.lock
anyway. (The Gemfile.lock
is a small file in the repo). Is this true too?