简体   繁体   English

Bundler和Github宝石

[英]Bundler and Github Gems

I'm confused ;-) I use Bundler which works fine for all my projects. 我很困惑;-)我使用Bundler,它对我所有的项目都适用。 In the recent project i need some Gems from Github so I've added 在最近的项目中,我需要一些来自Github的宝石,所以我添加了

gem "dm-is-localizable", :git => "git://github.com/snusnu/dm-is-localizable.git"

to my Gemfile. 到我的Gemfile。

Bundle pushes the dm-is-localizable stuff into my project dir directly (same dir where app/, db/, lib/ etc. resist, so there's dm-is-localizable/ now). Bundle直接将dm-is-localizable /的内容直接推送到我的项目目录中(app /,db /,lib /等抵抗该目录,因此现在有了dm-is-localizable /)。 Whats going wrong there? 那里出什么事了? Shouldn't Bundle put the stuff into vendor/? 捆绑包不应该将这些东西放到供应商/中吗?

There's a bug with Bundle such that gems from :git don't get installed the same way as the rest. Bundle中有一个错误,即:git的gem不能像其余的一样安装。 You can do bundle install --system to force all gems into be install into your system directory, or add these lines to your .bundle/config inside your project: 您可以执行bundle install --system强制将所有gem都安装到系统目录中,或将这些行添加到项目内的.bundle/config

BUNDLE_PATH: "vendor" BUNDLE_PATH:“供应商”

then run 'bundle install' once more. 然后再次运行“捆绑安装”。

I'm hoping Bundle will support :git more seamlessly in the future. 我希望Bundle将来会更无缝地支持:git。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM