2013-03-20 32 views
0

我有乘客+ apache的問題,我已經建立了一個虛擬主機...乘客失敗在Apache上運行 - Web應用程序無法啓動

<VirtualHost *:80> 
    ServerName www.temazo.es 
    PassengerEnabled on 
    PassengerAppRoot /home/handra/ruby/temazo 
    RailsEnv development 
    # !!! Be sure to point DocumentRoot to 'public'! 
    DocumentRoot /home/handra/ruby/temazo/public 
    ErrorLog /home/handra/ruby/temazo/log/fails 
    <Directory /home/handra/ruby/temazo/public> 
    # This relaxes Apache security settings. 
    AllowOverride all 
    # MultiViews must be turned off. 
    Options -MultiViews 
    </Directory> 

現在,如果我去www.temazo.es並點擊「關於應用程序的環境」,返回我這個錯誤... http://www.temazo.es/rails/info/properties

但如果我執行軌服務器......和我去http://www.temazo.es:3000/,完美的作品,並返回我所有的紅寶石conf。

有人可以幫助我嗎?

回答

0

在你的Gemfile,你應該有這樣一行:

# gem 'therubyracer', platforms: :ruby 

取消它,並運行bundle install,然後重新部署應用程序。

您需要在您的服務器上安裝JavaScript運行庫,以便可以編譯並運行JavaScript。

+0

謝謝,現在工作完美,,,對不起4這個問題,但是我的第一天在RoR。 :) – Hangover 2013-03-20 18:40:28

+0

順便說一句,你應該改變''RailsEnv開發''到RailsEnv生產',沒有人需要看到你的錯誤信息。請考慮接受我的回答是現在一切都好,享受RoR。 – Intrepidd 2013-03-20 18:41:23

相關問題