0

我有乘客 + apache 的问题,我已经设置了一个虚拟主机...

<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

但是,如果我执行 rails server... 然后我去http://www.temazo.es:3000/,那效果很好,并返回给我所有的 ruby​​ conf。

有人可以帮助我吗?

4

1 回答 1

0

In your gemfile, you should have this line :

# gem 'therubyracer', platforms: :ruby

Uncomment it, and run bundle install, then deploy your app again.

You need a javascript runtime installed on your server so the javascript can be compiled and ran.

于 2013-03-20T18:35:13.003 回答