You don't need to commit anything under vendor/bundle for bundler 1.0. You should ignore the whole thing. In bundler 0.7 and 0.8, you needed to keep the vendor/gems/cache directory because that was how bundler locked to a particular set of gems. In bundler 0.9+, locking is handled through Gemfile.lock.
If you do want to cache the gems for your application in bundler 1.0, you should use `bundle package`, which will put the cache in vendor/cache.
Rhett
>
> Can anybody help me with this?
>
> Thanks
> -subbu
>
> --
> You received this message because you are subscribed to the Google Groups "ruby-bundler" group.
> To post to this group, send email to ruby-b...@googlegroups.com.
> To unsubscribe from this group, send email to ruby-bundler...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ruby-bundler?hl=en.
>
On Sep 29, 2010, at 1:01 PM, Subbu wrote:
You don't need to commit anything under vendor/bundle for bundler 1.0. You should ignore the whole thing. In bundler 0.7 and 0.8, you needed to keep the vendor/gems/cache directory because that was how bundler locked to a particular set of gems. In bundler 0.9+, locking is handled through Gemfile.lock.
If you do want to cache the gems for your application in bundler 1.0, you should use `bundle package`, which will put the cache in vendor/cache.
Rhett
>
> Can anybody help me with this?
>
> Thanks
> -subbu
>
.bundle
vendor/bundle
Then I do
bundle install
bundle package
Then commit:
Gemfile
Gemfile.lock
vendor/cache
And use
bundle install --deployment
On production; and leave it to the devs how they want to bundle their own environment.
bundle install --path vendor/bundle
Will approximate a deployment install and leave the files under your source root. So when you do a search-all it also searches your dependent gems; downside is lots of hits for common items and slows all searches.
bundle install --local
Installs the bundle outside of your source root, but not in the system.
bundle install --system
Installs all the gems to the system; requires sudo privs
My preference is using the vendor/bundle path on my development machine.