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
ブロックでは、私はDocumentRoot
とDirectory
の両方のパスの最後に公開しています。オプションは次のとおりです。
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
:
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
エラーが発生します。
誰かが私が間違っているアイディアを得ましたか?
"VirtualHost"にする必要がありますか? –
コード化された値は正しいです、彼は質問のちょうど太った指です。 – user1334133