我在生产中部署了以下软件堆栈: 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:incall_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:68:in
activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:intagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in
来电' actionpack(4.2.1) lib / action_dispatch / middleware / request_id.rb:21:incall' rack (1.6.4) lib/rack/methodoverride.rb:22:in
来电'机架(1.6.4) lib / rack / runtime.rb:18:incall' 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'
process_request'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.13/lib/phusion_passenger/rack/thread_handler_extension.rb:94:in
/home/ubuntu/.rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.13/lib/phusion_passenger/request_handler/thread_handler.rb:149:inaccept_and_process_next_request'
main_loop'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.13/lib/phusion_passenger/request_handler/thread_handler.rb:110:in
/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
在开发过程中,相应地提供了根页面,但在生产中出现了一个空白屏幕,其中包含上述错误。
请协助。