Rails 3.1 and Ruby EE
Asked Answered
B

4

8

Since Rails 3.1 strongly recommends that it be installed with Ruby 1.9.2. But what about Ruby Enterprise Edition support? Ruby EE seems to be in the 1.8.x version, so I guess this means that future rails updates won't be working so well with it?

Bores answered 16/6, 2011 at 3:27 Comment(1)
The need for Ruby EE was to make a faster ruby, for entreprise use. Ruby 1.9 is already much faster, which removes the need for this VM. You can use directly MRI 1.9, no need for any REE 1.9.Hebdomad
H
6

it's only a recommendation (and I suggest it too), because as you may know, 1.9.2 is the most recent version.

you can still use REE for your 3.1 rails app, but keep in mind that some day you'll be forced to switch to a newer ruby interpreter, and it's not a painless task (even if you have a decent test coverage).

if it's about a passenger matter, don't worry, it will work on 1.9.2 too ;)

Hartwell answered 16/6, 2011 at 9:32 Comment(1)
That said, Rails 3.x still officially supports 1.8.7, so using that version of REE should be OK.Tyndale
A
0

if you generate new rails 3.1 app on 1.9 it will use new hash syntax, so you will not be able to easily switch to 1.8 later.

example: config/initializer/session_store.rb uses new hash syntax

YourApp::Application.config.session_store :cookie_store, key: '_yourapp_session'
Authorization answered 1/7, 2011 at 9:26 Comment(2)
3.1 uses new hash syntax only if you create your application with ruby 1.9. If you create it with 1.8, hashes will be created the old way.Hebdomad
This answer is apropos, given that some folks will start by using a more "familiar" Ruby like MRI 1.9, and then try to throw REE at it.Plasterboard
S
0

Our large Rails 3.1 app runs very slowly when we migrated it to ruby 1.9.2

We upgraded it rather than creating from scratch, so maybe we did something wrong, but running it with 1.9 is so slow it's unusable, switching to REE make it run nicely again.

Steelworks answered 24/8, 2011 at 7:23 Comment(0)
B
0

I decided to take the plunge and moved my app over to REE. It seems to work the same, a bitter faster in fact. The memory usage seems about the same. The guys from Phusion did an awesome job with the installer :)

Bores answered 24/8, 2011 at 21:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.