Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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).

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.

Where can I find a manual or tutorial to upgrade ruby version and my rvm version?

Thank you

like image 206
hyperrjas Avatar asked Dec 04 '12 20:12

hyperrjas


2 Answers

First upgrade RVM:

rvm get stable

Then upgrade installed Ruby:

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

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

like image 146
NARKOZ Avatar answered Oct 24 '22 04:10

NARKOZ


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.

You can use something like VirtualBox to keep the clone separate from your dev environment.

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.

like image 41
jboursiquot Avatar answered Oct 24 '22 05:10

jboursiquot