Phusion Passenger with Ruby 1.8 and 1.9?

倖福魔咒の 提交于 2019-12-04 20:10:20

问题


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 ?


回答1:


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!




回答2:


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




回答3:


Use the PassengerRuby directive.




回答4:


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.



来源:https://stackoverflow.com/questions/1291143/phusion-passenger-with-ruby-1-8-and-1-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!