2012-04-15 8 views
2

Webrickの下のWindows 7のボックスで、開発モードでうまく動作しているRails 3.0.7アプリケーションがあります。ApacheとパッセンジャーのRailsアプリケーション

私は、ESX 4.2、CentOS 6.2、Apache 2.2.15、Ruby 1.9.3p125、Rails 3.2.3、および乗客3.0.11とmysql 14.14に基づくプロダクションホストに移動し始めました。さまざまなインストールがきれいに実行されたようです。バンドルのインストールはきれいだったし、bundle exec rake db:migrateを実行してもきれいだった。

私はApache/passenger/rails環境を初めて使いましたが、これを正しく設定する方法を理解できないことがあります。私はこの問題に関する多くの記事を読んだことがありますが、そのアイデアは進歩していますが、まだエラーがあります。私が理解しているように、vituralhostブロックをApacheの設定ファイルに追加すると、passengerが起動し、レールアプリと人生が幸せになるはずですが、そうではありません。

VituralHostブロックでは、私はDocumentRootDirectoryの両方のパスの最後に公開しています。オプションは次のとおりです。

Ruby (Rack) application could not be started 
These are the possible causes: 

    There may be a syntax error in the application's code. Please check for such errors and fix them. 
    A required library may not installed. Please install all libraries that this application requires. 
    The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application. 
    A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service. 

Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem. 

Error message: 
    git://github.com/mark-moseley/linecache (at master) is not checked out. Please run `bundle install` (Bundler::GitError) 
Exception class: 
    PhusionPassenger::UnknownError 
Application root: 
    /var/www/html/Scarfs 

を私はlinecache19のための宝石のラインを持っている、ruby-debug-base19

はすべて AllowOverrideのすべて オプション-MultiViews

私は 172.16.2.226を入力してもらうwin7のホスト上のFirefoxから

から許可しますGemfileにはruby-debug19があります。 varous verionsが一緒にうまく動かないと感じましたか?私はlinecacheエラーとGemfileでlinechace19を指定することについて心配ですか?しかし、別の問題を解決するにはlinecache19が必要でした。

私もhttpdサービスを停止してスタンドアロンモードでpassengerを実行しようとしている:私は同じ「乗客が起動することができませんでした」のエラーが表示されます

passenger start -a 172.16.2.226 -p 80 -d -e development 

ポートを3000に変更すると、Firefoxで502 Bad Gatewayエラーが発生します。

誰かが私が間違っているアイディアを得ましたか?

+0

"VirtualHost"にする必要がありますか? –

+0

コード化された値は正しいです、彼は質問のちょうど太った指です。 – user1334133

答えて

0

サーバー上でwebrickを使用してアプリを起動できるようになっていますか?バンドルをどうやってインストールしていますか?

関連する問題