在nginx上部署rails app:在app的公共文件夹中没有index.html文件

时间:2015-07-03 00:46:58

标签: ruby-on-rails ruby nginx

我是铁轨的初学者。 我试图将应用程序从github部署到我的数字海洋帐户。 该应用程序不是我的,我只是想通过搞乱来部署,修改和学习。

我安装了乘客和nginx。

据我了解,我必须在nginx.conf中添加一个服务器代码块,它看起来像这样:

server {
    listen 80;
    root /app/public;
    passenger_enabled on;
    passenger_min_instances 1;      # <--- added
}

现在,问题是公用文件夹不包含index.html文件

routes.rb文件具有root

的以下内容
root :to => "home#index",
  :protocol => (Rails.application.config.force_ssl ? "https://" : "http://"),
  :as => "root"

任何人都可以帮忙解决这个问题吗?

0 个答案:

没有答案