0

很難解決的問題,至少對我來說(知道軌道,因爲不是很長)。當我找到解決方案時,我會分享它,所以其他人不會像我那樣浪費時間:)PhusionPassenger :: Rack :: ApplicationSpawner異常(任何東西)在生產rails應用程序

在生產服務器上運行我的rails應用程序,重新啓動apache並嘗試訪問您獲得的應用程序以下錯誤

Passenger encountered the following error:

The application spawner server exited unexpectedly: Connection refused - /tmp/passenger.1.0.16899/generation-0/spawn-server/socket.16909.15268580

Exception class: PhusionPassenger::Rack::ApplicationSpawner::Error

回答

0

在我的應用程序文件(在此情況下,幫助文件),我有這樣的代碼:

include ActionView::Helpers::TagHelper 

module MyHelper 
    ... 
end 

這是在發展與運作良好0,但乘客失敗。該解決方案是移動include在模塊內部,就像這樣:

module MyHelper 
    include ActionView::Helpers::TagHelper 
    ... 
end 

這可能是明顯對大多數的你,這將是對我來說太明顯從現在起:)

相關問題