加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 在OS X上安装了多个版本的Rails

发布时间:2020-12-17 01:54:36 所属栏目:百科 来源:网络整理
导读:OS X 10.6默认安装了Rails 2.2.2. 如何升级到Rails 2.3.8? 由于Rails 3已经用完,是否可以在OS X上安装多个版本的Rails(如2.3.8和3)? (例如,我可能正在开发两个Rails项目,一个是Rails 2.x,另一个是Rails 3.x). 解决方法 使用 rvm RVM is a command line too
OS X 10.6默认安装了Rails 2.2.2.
如何升级到Rails 2.3.8?

由于Rails 3已经用完,是否可以在OS X上安装多个版本的Rails(如2.3.8和3)?
(例如,我可能正在开发两个Rails项目,一个是Rails 2.x,另一个是Rails 3.x).

解决方法

使用 rvm

RVM is a command line tool which allows us to easily install,manage and work with multiple ruby environments from interpreters to sets of gems…

RVM allows users to deploy each project with its own completely self-contained and dedicated environment–from the specific version of ruby all the way down to the precise set of required gems to run the application. Having a precise set of gems also avoids the issue of version conflicts between projects,causing difficult-to-trace errors and hours of hair loss. With RVM,NO OTHER GEMS than those required are installed. This makes working with multiple complex applications where each has a long list of gem dependencies efficient. RVM allows us to easily test gem upgrades by switching to a new clean set of gems to test with while leaving our original set intact. It is flexible enough to even have a set of gems per environment or development branch–or even individual developer’s taste…

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读