hyperrjas
hyperrjas

Reputation: 10744

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

Upvotes: 6

Views: 1411

Answers (2)

jboursiquot
jboursiquot

Reputation: 1271

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.

Upvotes: 1

NARKOZ
NARKOZ

Reputation: 27941

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/

Upvotes: 5

Related Questions