2

I want to upgrade 2 apps to ruby 2.0.0-p247 and rails 4.0.0.

Upgrading from:
ruby 1.9.3
rails 3.2.13
I use RVM to manage rubies and gems.

What I'm gonna do.

I. Upgrade ruby
In terminal (from any dir):

  1. $ rvm install 2.0.0
  2. $ rvm --default use 2.0.0
  3. $ rvm gemset copy 1.9.3-p392@myBlog 2.0.0-p247@myBlog

Do I need to do something else to update ruby for my apps? Or it's enough to finish the update?
P.S. I don't have .ruby-version file in app root directory.

II. Upgrade rails
I'm gonna follow this cast: http://railscasts.com/episodes/415-upgrading-to-rails-4
Any additional comments for these steps?

III. Deploy to production
I'll change the ruby version for my projects via CP of my hosting.
And... cap deploy

Did I miss something?

4

1 回答 1

1
  1. 检查您的 gem 是否与 Ruby2 和 Rails 4 兼容;
  2. 确保您的测试套件是绿色的;
  3. 确保您的测试套件正在测试此升级可能破坏的所有内容;
  4. 对您在自动化测试期间遗漏的内容进行一些手动测试,并确保稍后将其自动化;
  5. 根据应用程序大小,在更改生产应用程序之前将它们放在一些测试区域;
于 2013-07-29T17:48:06.510 回答