迁移小导轨版本 [英] migrating minor rails versions
本文介绍了迁移小导轨版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
几周前我用 3.2.3 开始了一个新的 rails 项目.今天我注意到 Rails 3.2.4 和 3.2.5 已经发布.我不想落后,那么将我的应用更新到 3.2.5 的最佳方法是什么?
I started a new rails project a few weeks ago with 3.2.3. Today I noticed that rails 3.2.4 and 3.2.5 have been released. I don't want to be behind already, so what's the best way to update my app to 3.2.5?
推荐答案
- 阅读发行说明.
- 编辑您的 Gemfile 并运行
bundle update
. - 更新您的
.rvmrc
文件.(可选) - 运行您的测试.
- 根据需要重复.
一个警告是,如果您没有在 Gemfile 中明确指定 gem 版本,您可能会更新 gem 并引入破坏性更改;因为我的 Gemfile 懒惰,我被这个咬了.
One caveat is that if you do not explicitly specify gem versions in your Gemfile you may update a gem and introduce breaking changes; I have been bitten by this because of my Gemfile laziness.
这篇关于迁移小导轨版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文