我正在运行 Rails 2.3.4 应用程序,想知道是否应该升级到 3.0?
我正在开发一个应用程序,并且已经使用 Rails 2.3.4 一段时间了 但我想知道我是否应该尝试更新,或者继续等待,从不升级,我想我有几个选择。
我正在使用 ruby 1.8.7 我也需要升级吗?
这会有多困难/会破坏多少代码,我会得到很多意想不到的结果吗?
任何意见将不胜感激,我有点迷失了。
i am developing a app and have been for a while using Rails 2.3.4
but I'm wondering if i should try to update, or keep waiting, never upgrade, i suppose I have a couple options.
I am using ruby 1.8.7 would i need to upgrade that too huh?
how difficult would this be/ how much code would this break, would i have lots of unexpected results?
any input would be appreciated, I'm somewhat lost.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很大程度上取决于你的限制。如果您计划保持站点正常运行,并且它对您和/或您的客户非常重要,那么留在 Rails“黄金之路”上是值得的。一般来说,将 Rails 2 升级到 Rails 3 相对容易。
您可能需要检查您的插件/gems 是否与 Rails 3 兼容,网址为 http://www.railsplugins.org/< /a>.
就学习曲线而言,您需要熟悉捆绑器。
您可以坚持使用 Ruby 1.8.7。
现在,如果您想拥抱 Rails 3 的所有优点,这将需要更多的时间(重构),但它不应该阻止您升级。
有关详细信息,您可以查看:http://www.railsupgradehandbook.com/
It largely depends on your constraints. If you plan on keeping the site up and running, and it has significant importance to you and/or your client, then staying on the Rails "golden path" is worth it. In general, upgrading Rails 2 to Rails 3 is relatively easy.
You may want to check to see if your plugins / gems are Rails 3 compatible at http://www.railsplugins.org/.
In terms of learning curve, you'll want to get familiar with bundler.
You can stick with Ruby 1.8.7.
Now, if you want to embrace all the advantages of Rails 3, that will take a little more time (refactoring) but it shouldn't stop you from upgrading.
For more information you might take a look at: http://www.railsupgradehandbook.com/