我应该如何升级旧版本的 Ruby Enterprise Edition?
我们有一个运行 REE 版本的遗留系统,该版本已有近 3 年的历史。我们使用的版本存在一些问题,这些问题已在后续版本中修复,因此如果我们能够升级到较新的版本就好了。
这是文档中的升级建议(它是从源代码编译的): http://www.rubyenterpriseedition .com/documentation.html#_upgrading。
但是,这是否只是用新内容覆盖旧内容?我想保留所有当前安装的 gem(及其相应的二进制文件)。我不想要任何新的 gem:我不希望它安装新版本的 Rails,或者最新版本尝试安装的数十个其他 gem 中的任何一个。
We have a legacy system running a version of REE that is almost 3 years old. The version we're using has some issues that have been patched in later versions, so it would be nice if we could upgrade to a newer version.
This is the upgrade recommendation in the documentation (it was compiled from source): http://www.rubyenterpriseedition.com/documentation.html#_upgrading.
However, does that just overwrite the old stuff with the new stuff? I want to keep all of the currently installed gems (and their corresponding binaries). I don't want any new gems: I don't want it to install a new version of rails, or any of the dozens of other gems the latest version tries to install.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 rvm 或 rbenv 可能会让您更轻松。对于我更熟悉的 RVM,该过程是捕获当前安装的 gem 的列表,例如
gem list
的输出,并将其转换为Gemfile< /code> bundler 可以用来重新安装它们。
使用 RVM 升级相对安全,因为新的 REE 版本将安装在单独的目录结构中,如果出现问题,您可以通过放弃 RVM 或切换到系统 Ruby 来恢复到以前的版本。
Using rvm or rbenv might make this easier for you. In the case of RVM which I'm more familiar with, the process would be to capture a list of currently installed gems, such as the output of
gem list
and transform that into aGemfile
that bundler can use to reinstall them.Upgrading with RVM is relatively safe since the new REE version will be installed in a separate directory structure and you can revert to your previous version if something goes wrong by abandoning RVM or switching to the system Ruby.