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

时间:2014-04-22 04:55:11

标签: ruby-on-rails-4 nginx passenger

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

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

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

1 个答案:

答案 0 :(得分: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.

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

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

相关问题