Rails4,passenger,nginx(应用程序是rails4但错误地检测为Rails1或Rails2)

Jak*_*har 0 passenger nginx ruby-on-rails-4

我正在使用标准设置部署rails4应用程序,但获得:

此应用程序是Rails 4应用程序,但它被错误地检测为Rails 1或Rails 2应用程序.这可能是Phusion Passenger中的一个错误,所以请报告.

http://ec2-54-187-113-154.us-west-2.compute.amazonaws.com/

Raj*_*oit 6

Phusion Passenger假设Rack应用程序(Rails> = 3)目录具有特定的布局.假设您在/ webapps/rackapp中有一个Rack应用程序.那个文件夹必须至少包含三个条目:

* config.ru, a Rackup file for starting the Rack application. This file must contain the complete logic for initializing the application.

* public/, a folder containing public static web assets, like images and stylesheets.

* tmp/, used for restart.txt (our application restart mechanism). This will be explained in a following subsection.
Run Code Online (Sandbox Code Playgroud)

因此,请检查您的根目录和public,tmp文件夹中的having,config.ru.

请参阅:http://www.modrails.com/documentation/Users%20guide%20Nginx.html#deploying_a_rack_app