简体   繁体   English

如何更新旧 Rails 项目上的 ruby​​ 版本

[英]How update the ruby version on a old rails project

I have a rails 3 app that was made with 2.0.0-p0 ruby.我有一个用 2.0.0-p0 ruby​​ 制作的 rails 3 应用程序。

Now i would like to update just the ruby to 2.2.2现在我只想将 ruby​​ 更新到 2.2.2

I changed already the local and global ruby on rbenv to 2.2.2.我已经将 rbenv 上的本地和全局 ruby​​ 更改为 2.2.2。

There is a way or i have to keep using the 2.0.0-p0 on this app?有没有办法或者我必须继续在这个应用程序上使用 2.0.0-p0?

You have switched to another version of Ruby and you are probably using a different gemset (probably an empty one).您已切换到另一个版本的 Ruby,并且您可能正在使用不同的 gemset(可能是空的)。 Try running:尝试运行:

bundle install

Note that after switching to a newer version of Ruby, some of your old code might not be compatible, ie need debugging.请注意,切换到较新版本的 Ruby 后,您的某些旧代码可能不兼容,即需要调试。

Hope this help!希望这有帮助!

暂无
暂无

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

相关问题 Ruby on Rails::如何在优胜美地10.10.4上运行内置的旧项目(Ruby -v1.9.2-Rails -version 2.2.3) - Ruby on Rails : : How to run an old project built in (Ruby -v1.9.2 - Rails -version 2.2.3) on Yosemite 10.10.4 旧版本进行手动更改时,如何更新(Rails项目的)插件版本 - How to update plugins version (of a rails project) when old version had manual changes Ruby on Rails - 如何在我的项目中设置默认的 ruby 版本? - Ruby on Rails - How to set the default ruby version in my project? 如何更新滑轨? 由于版本过旧,出现太多错误 - How to update rails? Getting too many errors due to an old version 是什么使这个Rails项目保持旧的Rails版本(或者我怎么找出保持它的旧版本的Rails)? - What is keeping this rails project at an old rails version (or how can I find out what is keeping it at an old rails version)? Ruby和Rails将不会更新到最新版本 - Ruby and Rails will not update to latest version 可以用rails 2.3项目将ruby更新到版本ruby 1.9.3(现有代码) - Is is possible to update ruby to version ruby 1.9.3 with rails 2.3 project (existing code) 如何找出现有 Rails 项目基于哪个 Ruby 版本? - How to find out which Ruby version an existing Rails project is based on? 如何在同一台机器但不同的项目上使用两个 ruby,rails 版本? - How to use two ruby,rails version on same machine but different project? Ruby Rails webrick服务器使用旧版本的ruby - Ruby Rails webrick server using old version of ruby
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM