使用Bundler时,为什么还要关心RVM的Gemset功能? [英] Why should I care about RVM's Gemset feature when I use Bundler?

查看:79
本文介绍了使用Bundler时,为什么还要关心RVM的Gemset功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白。我以为 Bundler 是为了解决宝石之间的版本冲突而开发的。因此,我只需要要求捆绑软件/设置 ,一切都很好,知道 Bundler 将加载我所有宝石的正确版本,并且他们的依赖性。现在, RVM 非常适合管理多个红宝石,但是为什么我要关心Gemset功能?我在这里想念什么吗?它可以使我的发展更加轻松吗?也许,有些人可以给我一些有关开发和生产的完美 RVM + Bundler 工作流程的提示。



我也不知道 RVM 什么时候开始切换到另一个Ruby。我知道我的项目中可以有一个 .rvmrc 文件,但是我是否必须 cd 到此目录,所以



此外,由于 Passenger.prefpane <,我通常使用 Passenger 进行开发。 / code>,在 Mac OS 中的集成非常好。我是否仍可以使用RVM做到这一点,还是有更好的方法呢? Passenger 是否识别 .rvmrc 文件并切换到正确的Gemset?

解决方案


为什么我在使用Bundler时应该关心RVM的Gemset功能?


不应该。



好吧,如果您想要,您可以关心,所以我最好说你不需要。



我只是听了对Bundler核心团队成员之一的播客采访,他们基本上说,自从他开始使用Bundler以来,他就停止使用Gemsets,因为它们是多余的。 / p>

这是一篇讨论相同问题的博客文章,并提供了一些示例。


I just don't get it. I thought, Bundler was developed to resolve version conflicts between gems. So that I just have to require "bundler/setup" and everything is fine, knowing that Bundler will load the correct versions of all my gems and their dependencies. Now, RVM is great for managing multiple Rubies, I know, but why should I care about the Gemset feature? Do I miss something here? Can it make my development even easier? Maybe, some of you can give me some hints on the perfect RVM + Bundler workflow for both, development and production.

I also don't know when RVM starts switching to another Ruby. I know that I can have an .rvmrc file in my project, but do I have to cd to this directory so that the switch happens?

Furthermore, I usually use Passenger for development since, thanks to the Passenger.prefpane, integration in Mac OS is great. Can I still do that with RVM or is there a better way to do it? Does Passenger recognize .rvmrc files and switch to the correct Gemset?

解决方案

Why should I care about RVM's Gemset feature when I use Bundler?

You shouldn't.

Well, if you want to, you can care about, of course, so I should better say "You don't need to."

I just listened to a podcast interview with one of the Bundler core team members who basically said that since he started using Bundler he stopped using Gemsets, because they are redundant.

Here's a blog post that discusses the same issue, with some examples.

这篇关于使用Bundler时,为什么还要关心RVM的Gemset功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆