How does CloudFoundry handle the gems from github?

43 views
Skip to first unread message

Lei Zhang

unread,
Nov 9, 2012, 9:54:08 PM11/9/12
to vcap...@cloudfoundry.org
Hi,all 

I found that running "bunder install"  in a repo will not install the gems from github.com into local gem list. Instead, they will be placed in ../bundler/gems and we have to require 'bundler/xxx' to use them.

But in CloudFoundry, I found that after running dev_setup all the gems can be found in the gem list. Could I know how your guys achieved that or I just missed something here. 

I found nothing special in cookbooks except for normal "bundle install".

Pieter Noordhuis

unread,
Nov 10, 2012, 2:39:42 PM11/10/12
to vcap...@cloudfoundry.org
That gems are installed globally is the normal behavior. Check if you
have a ".bundle" directory in the directory where your Gemfile is
located. This can contain configuration that directs Bundler to
install gems some place else.

Also see: http://gembundler.com/

Cheers,
Pieter

磊张

unread,
Nov 10, 2012, 9:48:36 PM11/10/12
to vcap...@cloudfoundry.org
Unluky, i did not find".bundle" file in any repo. Could you please show me any configuration like that? The bundler homepage did not specify that directory either...


在 2012年11月11日星期日UTC+8上午3时39分44秒,Pieter Noordhuis写道:

磊张

unread,
Nov 14, 2012, 9:53:56 PM11/14/12
to vcap...@cloudfoundry.org
Still unsolved... Instead, I have to use gem build to install that gem locally.


在 2012年11月11日星期日UTC+8上午3时39分44秒,Pieter Noordhuis写道:

Maria Shaldibina

unread,
Nov 14, 2012, 10:15:26 PM11/14/12
to vcap...@cloudfoundry.org
Try to run "bundle config" and see if BUNDLE_PATH is set to something.


Also check your "gem env" if GEM_HOME is set.

-Maria
Reply all
Reply to author
Forward
0 new messages