0
我在我的Rails應用程序中使用Passenger gem。我不知道如何,但它的路徑從ruby1.9.3更改爲ruby2.0.0。當我重新啓動我的nginx的服務器,我得到錯誤:乘客:不知道如何構建任務'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)
我沒有得到如何使這項工作。有誰能夠幫助我?
你在哪個目錄下運行'rake nginx',你爲什麼運行'rake nginx'? – Hongli