Phusion Passenger with Ruby 1.8 and 1.9?
Asked Answered
F

4

8

How would I go about running two separate Rails applications using Phusion Passenger with one using Ruby 1.8.x and the other using Ruby 1.9.x ? I'm running Redmine which isn't Ruby 1.9.x compatible, and the other application is a home grown app.

I'm using Apache 2.2.x with Passenger 2.2.4.

Is this even possible ?

Fallal answered 18/8, 2009 at 0:10 Comment(0)
F
8

I ended up running Nginx with Passenger and Ruby 1.9 on port 80, and then proxying off my other virtual hosts to Apache 2.2 on port 8080 with Passenger and Ruby 1.8. Win!

Fallal answered 18/8, 2009 at 4:5 Comment(0)
T
4

Just a little late but I found this thanks to Google: Phusion Passenger & running multiple Ruby versions Must be the necromancer in me.

Thinking answered 2/5, 2011 at 11:44 Comment(1)
Phusion passenger running multiple versionsGringo
R
0

Use the PassengerRuby directive.

Romp answered 18/8, 2009 at 12:41 Comment(3)
heya, umm according to the docs, PassengerRuby can only be specified once, and doesn't seem to be allowed in virtual host configs ?Fallal
Ops, you are right. I didn't notice it was a global server configuration.Romp
Not anymore since Phusion Passenger 4. I can be configured per vhost/location.Toein
S
0

Passenger supports multiple Ruby interpreters as of version 4.0.0 (February 2013). The PassengerRuby config option has been made a per-virtual host option, so you can customize your Ruby interpreter on a per-application basis. See here for details.

Sinistrorse answered 14/8, 2013 at 15:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.