0

乗客とapacheに問題があります。すでにvirtualHostを設定しています...

<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/にアクセスすると、それは完全に機能し、すべてのrubyconfを返します。

誰かが私を助けることができますか?

4

1 に答える 1

0

gemfile には、次の行が必要です。

# gem 'therubyracer', platforms: :ruby

コメントを外して を実行しbundle install、アプリを再度デプロイします。

JavaScript をコンパイルして実行できるようにするには、サーバーに JavaScript ランタイムをインストールする必要があります。

于 2013-03-20T18:35:13.003 に答える