简体   繁体   English

如何在生产服务器中升级rvm和ruby版本

[英]how upgrade rvm and ruby version inside a production server

I have a production server with nginx and ruby 1.9.3p125 (2012-02-16 revision 34643) . 我有一个生产服务器,其中包含nginx和ruby 1.9.3p125 (2012-02-16 revision 34643)

I have taken a look to http://www.ruby-lang.org/en/news/2012/11/09/ruby-1-9-3-p327-is-released/ and I want upgrade to ruby-1-9-3-p327 to fix security bugs. 我已经看了http://www.ruby-lang.org/en/news/2012/11/09/ruby-1-9-3-p327-is-released/我希望升级到ruby-1-9-3-p327修复安全漏洞。

Where can I find a manual or tutorial to upgrade ruby version and my rvm version? 我在哪里可以找到升级ruby版本和rvm版本的手册或教程?

Thank you 谢谢

First upgrade RVM: 首先升级RVM:

rvm get stable

Then upgrade installed Ruby: 然后升级安装的Ruby:

rvm upgrade ruby-1.9.3-p125 ruby-1.9.3-p327

https://rvm.io/rubies/upgrading/ https://rvm.io/rubies/upgrading/

If your app cannot suffer any downtime, it is wise to duplicate your production environment locally, performing the upgrade through rvm as NARKOZ points out and then running your tests to ensure everything still works as expected. 如果您的应用程序不会遭受任何停机,那么在本地复制您的生产环境,通过rvm执行升级是明智的,因为NARKOZ指出然后运行您的测试以确保一切仍然按预期工作。

You can use something like VirtualBox to keep the clone separate from your dev environment. 您可以使用VirtualBox之类的东西将克隆与开发环境分开。

Once you're confident everything works, then do the upgrade. 一旦你确信一切正常,那么就进行升级。 I'd even recommend taking a snapshot backup of your server before proceeding. 我甚至建议您在继续之前对服务器进行快照备份。

Good Luck. 祝好运。

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

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