3

weird issue. I have passenger installed on an Apache 2 server, and trying to get a Rails application running. First time deploying a rails application, so not really sure what's going on.

Passenger gives me this error:

enter image description here

But the problem is that 1.9.2-p136 isn't even installed on my system. I removed all ruby versions and completely reinstalled ruby with 1.9.3-p448. (I also have 2.0.0 but I default to 1.9.3)

Not seeing how passenger is even recognizing that I am running a build of ruby that doesnt exist on my system.

I'm hoping this is my last obstacle to getting this started. I have dealt with about every issue that I could have trying to get this damn rails app up. I'll tell you, they make up for how easy it is to develop with by making it impossible to deploy.

Thanks all!

4

1 回答 1

3

1.9.2 可能是系统红宝石(或者曾经是,在某些时候)。现在,Passenger 是如何在运行的同时使用 1.9.3 的 rvm 安装中的 gems 的...

无论如何,请检查您的乘客配置。确保PassengerDefaultRuby(如果存在)和PassengerRuby指令指向正确的版本;乘客经常对不同的 PATH 感到困惑,对于 rvm 尤其如此,您可能在用户 shell 会话中运行的版本与系统工具自己找到的版本不同。

人们喜欢 Unicorn、Puma 和 Rainbows 等解决方案是有原因的。;) 乘客,一旦你编译和配置它,几乎是一劳永逸的,但达到这一点可能会很痛苦。

于 2013-09-07T16:58:44.213 回答