简体   繁体   English

使用RVM或Brightbox Gem升级到红宝石1.9.3

[英]Upgrade to ruby 1.9.3 with rvm or brightbox gems

I currently use rvm on my dev box (osx) but I use the system ruby on my server (1.8.7 on Ubuntu 10.04) 我目前在开发箱(osx)上使用rvm,但在服务器上使用系统ruby(在Ubuntu 10.04上为1.8.7)

I want to upgrade the server to 1.9.3 and have been researching the best way to do it. 我想将服务器升级到1.9.3,并一直在研究实现此目的的最佳方法。 The server is running about four Rails applications all on version 3.2.11. 该服务器在版本3.2.11上运行着大约四个Rails应用程序。

My options appear to be using rvm or alternatively using the 1.9.3 deb package and the ruby-switch gem provided by BrightBox (who also provide passenger packages) 我的选择似乎是在使用rvm或使用1.9.3 deb软件包和BrightBox提供的ruby-switch gem(该软件包还提供乘客软件包)

The Brightbox packages appear to be a clean way to go but I thought I would ask a question here to see if there are any advantages or disadvantages of either approach that I have not thought about. Brightbox软件包似乎是一个干净的方法,但是我想在这里问一个问题,看看我没有想到的任何一种方法是否有优点或缺点。

Rvm is useful when you need to have two or more versions of Ruby on the same machine . 当需要在同一台计算机上具有两个或多个Ruby版本时,Rvm非常有用。 Development machines tend to have this. 开发机器往往具有此功能。 There is no need to use a version manager if your production box only requires one version of Ruby. 如果您的生产环境仅需要一个Ruby版本,则无需使用版本管理器。

To this effect, I'd suggest you're correct in doing a single installation from the deb package. 为此,建议您从deb软件包进行一次安装是正确的。 I can see the ruby-switch gem gives similar functionality to rvm - up to you as to whether that's important. 我可以看到ruby-switch gem提供了与rvm类似的功能-由您决定是否重要。 But if you're using three apps on the same version of ruby, it may not be! 但是,如果您在同一版本的ruby上使用三个应用程序,则可能并非如此!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM