Forum: Ruby on Rails rails engine - vendor/bundle and vendor/cache

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Db9510c96a4c0f6f88c9aa39ab24211a?d=identicon&s=25 jsnark (Guest)
on 2014-01-07 23:20
(Received via mailing list)
I created two rails engines.  In one of them 'bundle install' generated
only a vendor/cache directory.  In the other one, 'bundle install'
created
both vendor/cache and vendor/bundle.  The vendor/bundle directory is
causing me some problems.  I do not remember what I did differently when
creating the two engines.

What causes 'bundle install' to create the vendor/bundle directory and
how
do I avoid this?

Thanks in advance.
Db9510c96a4c0f6f88c9aa39ab24211a?d=identicon&s=25 jsnark (Guest)
on 2014-01-08 22:43
(Received via mailing list)
Found the solution.  This explanation may not be 100% accurate.

Bundle remembers how it was first executed in the directory '.bundle'.
Subsequent executions use this information.  'bundle install' puts the
gems
in the vendor/bundle directory.  'bundle package' puts the gems in the
vendor/cache directory.

Apparently in the first engine I ran 'bundle package' first and in the
second I ran 'bundle install' first.  To fix the problem, I deleted the
vendor/bundle, vendor/cache, and .bundle directories and then ran
'bundle
package', recreating the vendor/cache directory but not the
vendor/bundle
directory.
This topic is locked and can not be replied to.