是否可以在不重新编译的情况下更改 Passenger Ruby 版本?
我尝试将默认的 ruby
命令更改为 1.9.2,但 Passenger 一直运行 1.8.7
Passenger 是否使用嵌入的 Ruby 进行编译?
I tried changing the default ruby
command to 1.9.2 but Passenger keeps running 1.8.7
Is Passenger compiled with Ruby embedded?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
要设置 Ruby 版本,请将此行添加到您的 vhost 文件中:
To set the Ruby version add this line to your vhost file:
每当“捆绑更新”更新乘客 gem 的版本时,我都会
在该过程结束时吐出您需要放在顶部或 Apache 配置的完整内容。例如:
我更新了一些东西,重新启动 Apache,一切看起来都很好。
我想在更新 Ruby 后,同样的过程也是必要的。
Whenever a "bundle update" updates the version of the passenger gem, I do
At the end of that process, it spits out the full blob of stuff that you need to put at the top or your Apache config. E.g. something like:
I update the blob of stuff, restart Apache and all seems well.
I imagine that this same process is necessary after updating Ruby.
将 PassengerRuby 设置在
标记之前。示例:
它对我有用!
在这篇文章中查找更多详细信息。
Set PassengerRuby before the
<Directory>
tag.Example:
It is working for me!
Find more detail in this post.