是否可以在 Phusion Passenger 已经运行时将其升级到较新的版本(在我的情况下使用 Nginx)?
我使用passenger-install-nginx-module
. 我的 Nginx 配置现在包含
passenger_root /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.rc6;
passenger_ruby /usr/local/bin/ruby;
现在我想升级到Passenger 4.0.2。我可以安装 gem,但是当我passenger-install-nginx-module
再次运行时,它会尝试重新编译并重新安装 Nginx。(我认为在我使用指定的位置注意到已经安装了 Nginx 会很聪明--prefix
)
我尝试手动更改passenger_root
为新的Passenger gem 位置,但在Nginx 错误日志中出现以下错误:
2013/05/12 12:30:13 [alert] 14298#0: Unable to start the Phusion Passenger watchdog because its executable (/usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.2/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'passenger_root' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your 'passenger_root' directive, whichever is applicable. (-1: Unknown error)
显然PassengerWatchdog
是在运行时构建的passenger-install-nginx-module
。我不想PassengerWatchdog
从旧的 gem 复制过来,因为有些东西可能已经改变了。
那么......在不重新编译和重新安装Nginx(或Apache)的情况下升级Passenger的正确方法是什么?