我需要做什么才能将应用程序升级到最新的 Rails 版本? [英] What do I need to do to upgrade an application to the latest Rails version?

查看:40
本文介绍了我需要做什么才能将应用程序升级到最新的 Rails 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用的是 Rails 2.1.0,想升级到 Rails 2.1.1.发出以下命令后

I am currently using Rails 2.1.0 and want to upgrade to Rails 2.1.1. After issuing the following command

gem update rails

我想我需要改变这一行

RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION

在 environment.rb 中

in environment.rb

我还应该采取哪些其他措施来确保我的应用程序使用的是最新版本?还有其他一些文件需要更新吗?

What other actions should I take to ensure that my application is using the latest version? Are there some other files that need an update?

推荐答案

您还需要进入您的应用程序目录并运行以下命令:

You'll also need to go into your application directory and run the following command:

耙轨:更新

然后运行您的测试并确保一切正常.

Then run your tests and make sure everything works.

这篇关于我需要做什么才能将应用程序升级到最新的 Rails 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆