0

私はRubyを初めて使用し、PhusionPassengerをインストールしています。Nginxの指示に従って動作させました 。

具体的には、彼らのページから、私はこの主張を理解していません:

デプロイメントは、アプリケーションファイルをアップロードするだけの問題です。Ruby(on Rails)固有のサーバー構成は必要ありません!

その場合、なぜconfig.ruファイルが必要なのですか?私はpassenger_rootにindex.rbファイルをドロップしてそれで済ますことができるだろうと思っていました。

4

2 に答える 2

1

The config.ru is not so much configuration actually. In fact it is the main entry point to a Rack application (e.g a Rails app, but also Sinatra and others). As such it is part of your application and not part of the webserver configuration.

于 2012-09-17T07:53:18.853 に答える
0

The reference is talking about the webserver configuration part. E.g. you need not include any reverse proxy stuff in the virtual host config of apache. Thats different from using thin etc.

于 2012-09-17T06:53:46.347 に答える