Vendoring rails the good ol' fashioned way

rails 3.0.7 here.

‘bundle package’ dumps 29MB into vendor/cache and 129MB into vendor/
rails… That seems to arbitrary and unnecessary. How do I install
rails to vendor/rails these days? ‘rake rails:freeze:gems’ used to
work great, now what?

Tried this:
Gemfile:
gem ‘rails’, ‘3.0.7’, :path => ‘vendor/rails’
$ bundle install

… still dumps 129MB into vendor/rails AND ‘rails console’ doesn’t
even work:

$ rails console
script/rails:6:in `require’: no such file to load – rails/commands
(LoadError)
from script/rails:6

On Mon, Apr 25, 2011 at 9:35 PM, Josh [email protected] wrote:

$ bundle install

… still dumps 129MB into vendor/rails AND ‘rails console’ doesn’t
even work:

$ rails console
script/rails:6:in `require’: no such file to load – rails/commands
(LoadError)
from script/rails:6

Hi, you simply need to do the following:

bundle install --path vendor/rails

Also, here’s a good post on the subject:

Last but not least, you can read more about bundler here:

http://gembundler.com

Good luck,

-Conrad

On 26 Apr 2011, at 05:35, Josh [email protected] wrote:

rails 3.0.7 here.

‘bundle package’ dumps 29MB into vendor/cache and 129MB into vendor/
rails… That seems to arbitrary and unnecessary.

That’s odd - the only thing bundle package is supposed to do is dump all
the gems used into vendor/cache and setup things so that bundle install
installs from there. Not sure why vendor/rails is getting created at
all. Vendor/cache will be bigger than an old school vendor/rails since
it includes all of your app’s gems and all of their dependencies, not
just rails.

Fred

How do I install
rails to vendor/rails these days? ‘rake rails:freeze:gems’ used to
work great, now what?

Tried this:
Gemfile:
gem ‘rails’, ‘3.0.7’, :path => ‘vendor/rails’

$ bundle install

… still dumps 129MB into vendor/rails AND ‘rails console’ doesn’t
even work: