简体   繁体   English

从Rails 4.2.1升级

[英]Upgrading from Rails 4.2.1

I am working on upgrading my Rails app. 我正在升级我的Rails应用程序。

My rails app's current Rails version is 4.2.1 and Ruby version is 2.3.6 . 我的rails应用程序的当前Rails版本是4.2.1而Ruby版本是2.3.6

I have the below questions: 我有以下问题:

  1. What is the stable version of Rails? 什么是Rails的稳定版本?
  2. To which Rails version is it recommended to upgrade from 4.2.1? 建议从4.2.1升级到哪个Rails版本?
  3. Is it recommended to upgrade Ruby version along with Rails version? 是否建议将Ruby版本与Rails版本一起升级?

Thanks in advance 提前致谢

  1. At the time of writing - stable is 5.2.3, but 6.0.0.rc1 is production ready. 在撰写本文时-稳定为5.2.3,但6.0.0.rc1已准备就绪。 You can look up versions at rubygems 您可以在rubygems查找版本
  2. It's better to upgrade one minor version at a time from the latest patch - at each step ensure that you have fixed all deprecations and everything is working (tests pass etc.). 最好从最新的补丁程序一次升级一个次要版本-在每个步骤中,请确保您已修复所有不推荐使用的内容,并且一切正常(测试通过等)。 Most significant changes are described in upgrade guide 升级指南中介绍了最重要的更改
  3. Ruby upgrade is a separate step, better is to upgrade ruby prior to rails Ruby升级是一个单独的步骤,更好的方法是在Rails之前先升级ruby

So in your case i'd do: 因此,就您而言,我愿意:

4.2.1 -> 4.2.11.1 -> 5.0.7.2 -> 5.1.7 -> 5.2.3 -> ruby 2.4 -> ruby 2.5 -> ruby 2.6 -> 6.0.0.rc1 4.2.1 - > 4.2.11.1 - > 5.0.7.2 - > 5.1.7 - > 5.2.3 - > ruby 2.4 - > ruby 2.5 - > ruby 2.6 - > 6.0.0.rc1

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

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