2013-03-20 34 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

相关问题