乘客:不知道如何构建任务'nginx'

时间:2013-07-20 11:51:24

标签: nginx ruby-on-rails-3.2 passenger

我在我的rails应用程序中使用Passenger gem。我不知道如何,但它的路径从ruby1.9.3改为ruby2.0.0。当我重新启动我的nginx服务器时,我收到错误:

 Restarting nginx: nginx: [alert] Unable to start the Phusion Passenger watchdog because its executable (/usr/local/rvm/gems/ruby-2.0.0-p0/gems/passenger-4.0.0.rc4/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)

当我运行此命令时:

rake nginx

它给出了:

Don't know how to build task 'nginx'
/usr/local/rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)

我没有得到如何使这项工作。有人能帮助我吗?

1 个答案:

答案 0 :(得分:0)

搞定了!

在我的/ opt / nginx中,为ruby 2.0.0提供了乘客路径,我将其更改为ruby 1.9.3并且正常工作!