我应该如何升级旧版本的 Ruby Enterprise Edition?

发布于 2025-01-03 03:15:03 字数 399 浏览 4 评论 0原文

我们有一个运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心作怪 2025-01-10 03:15:03

使用 rvmrbenv 可能会让您更轻松。对于我更熟悉的 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 a Gemfile 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文