为什么从 github 获取的 gem 不存储在供应商/缓存中?
从指定源(例如源'https://rubygems.org')获取的所有gem都存储在vendor/cache中,但从github获取的所有gem都存储在(例如gem“delocalize”,git:“< a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f1969885b1969885998493df929e9c">[电子邮件受保护]:Svensklanemarknad/delocalize.git")。
由于部署性能的原因,我想将所有 gem 包含在供应商/缓存中,这样我只能更新供应商/缓存中的特定 gem,以节省“捆绑包更新”的时间。
为什么从 github 获取的 gem 不存储在供应商/缓存中?
All gems that are fetched form the specified source (e.g. source 'https://rubygems.org') are stored in vendor/cache but none of the ones that are fetched from github are (e.g. gem "delocalize", git: "[email protected]:Svensklanemarknad/delocalize.git").
I'd like to include all gems in the vendor/cache because of deploy performance and so that I could only update a specific gem in the vendor/cache to save time on the 'bundle update '.
why aren't gems that are fetched from github stored in vendor/cache?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试运行
捆绑程序包
。http://gembundler.com/bundle_package.html。
有一个关于捆绑包无法与 git 源一起使用的开放问题,请在此处保持最新状态:https:// /github.com/carlhuda/bundler/issues/67。我读到有一些未合并的捆绑程序补丁可以解决这个问题。
Try running
bundler package
.http://gembundler.com/bundle_package.html.
There is an open issue about bundle package not working with git sources, stay up to date here: https://github.com/carlhuda/bundler/issues/67. I read that there is some not merged patch for bundler which makes the trick.