为什么Rails 4.2.1在生产中寻找index.html(apache2,passenger)

时间:2015-07-12 17:26:32

标签: ruby-on-rails ruby ubuntu passenger apache2.2

我在生产中部署了以下软件堆栈: Rails 4.2.1 Apache 2 乘客5.0.13

当通过浏览器请求应用程序时,这是关于production.log的错误:

  

[2015-07-12T17:22:23.089940#5378]信息 - :开始GET   " /index.html" for 10.0.0.89 at 2015-07-12 17:22:23 +0000 F,   [2015-07-12T17:22:23.090858#5378]致命 - :   ActionController :: RoutingError(没有路由匹配[GET]" /index.html"):   actionpack(4.2.1)   lib / action_dispatch / middleware / debug_exceptions.rb:21:in call'
actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in
来电'
  railties(4.2.1)lib / rails / rack / logger.rb:38:in call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in阻止电话'的ActiveSupport   (4.2.1)lib / active_support / tagged_logging.rb:68:在block in tagged'
activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in
标记的' activesupport(4.2.1)   lib / active_support / tagged_logging.rb:68:in tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in来电' actionpack(4.2.1)   lib / action_dispatch / middleware / request_id.rb:21:in call' rack (1.6.4) lib/rack/methodoverride.rb:22:in来电'机架(1.6.4)   lib / rack / runtime.rb:18:in call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in call' rack(1.6.4)lib / rack / sendfile.rb:113:在call' railties (4.2.1) lib/rails/engine.rb:518:in来电'铁路(4.2.1)   lib / rails / application.rb:164:在call'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.13/lib/phusion_passenger/rack/thread_handler_extension.rb:94:in
process_request'
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.13/lib/phusion_passenger/request_handler/thread_handler.rb:149:in accept_and_process_next_request'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.13/lib/phusion_passenger/request_handler/thread_handler.rb:110:in
main_loop'
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.13/lib/phusion_passenger/request_handler.rb:415:in   {_ 1}}阻止了create_thread_and_abort_on_exception'

我的config / routes.rb如下:

block (3 levels) in start_threads'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.13/lib/phusion_passenger/utils.rb:111:in

在开发过程中,相应地提供了根页面,但在生产中出现了一个空白屏幕,其中包含上述错误。

请协助。

0 个答案:

没有答案