Nginx /独立乘客/ Nginx配置模板/ Rails3

时间:2019-05-07 19:01:53

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

找到该路由,并且在下一次重新加载时未找到。我是否缺少可能导致此问题的配置?

奇怪的是,所发现路线的错误和成功率为1:1。它不是间歇性的,但会出错,并且每次重新加载都会成功。

我正在使用通配符路由:

match ':controller(/:action(/:id(.:format)))'

已经5天了,以为我会向社区提出任何建议。

ActionController::RoutingError (No route matches [GET] "/tools/auth/select"):
  vendor/bundle/ruby/2.2.0/gems/actionpack-3.2.22.4/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  vendor/bundle/ruby/2.2.0/gems/actionpack-3.2.22.4/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.4/lib/rails/rack/logger.rb:32:in `call_app'
  vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.4/lib/rails/rack/logger.rb:16:in `block in call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-3.2.22.4/lib/active_support/tagged_logging.rb:22:in `tagged'
  vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.4/lib/rails/rack/logger.rb:16:in `call'
  vendor/bundle/ruby/2.2.0/gems/quiet_assets-1.0.3/lib/quiet_assets.rb:23:in `call_with_quiet_assets'
  vendor/bundle/ruby/2.2.0/gems/actionpack-3.2.22.4/lib/action_dispatch/middleware/request_id.rb:22:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.4.7/lib/rack/methodoverride.rb:21:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.4.7/lib/rack/runtime.rb:17:in `call'
  vendor/bundle/ruby/2.2.0/gems/activesupport-3.2.22.4/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-1.4.7/lib/rack/lock.rb:15:in `call'
  vendor/bundle/ruby/2.2.0/gems/rack-cache-1.6.1/lib/rack/cache/context.rb:140:in `forward'
  vendor/bundle/ruby/2.2.0/gems/rack-cache-1.6.1/lib/rack/cache/context.rb:249:in `fetch'
  vendor/bundle/ruby/2.2.0/gems/rack-cache-1.6.1/lib/rack/cache/context.rb:189:in `lookup'
  vendor/bundle/ruby/2.2.0/gems/rack-cache-1.6.1/lib/rack/cache/context.rb:66:in `call!'
  vendor/bundle/ruby/2.2.0/gems/rack-cache-1.6.1/lib/rack/cache/context.rb:51:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.4/lib/rails/engine.rb:484:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.4/lib/rails/application.rb:231:in `call'
  vendor/bundle/ruby/2.2.0/gems/railties-3.2.22.4/lib/rails/railtie/configurable.rb:30:in `method_missing'
  passenger (6.0.2) src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
  passenger (6.0.2) src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request'
  passenger (6.0.2) src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
  passenger (6.0.2) src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in `block (3 levels) in start_threads'
  passenger (6.0.2) src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'


Started GET "/tools/auth/select" for 57.130.176.32 at 2019-05-07 15:04:13 -0700
Processing by AuthController#select as HTML
  Rendered auth/select.html.erb within layouts/external_views (0.0ms)
Completed 200 OK in 5496.3ms (Views: 4.0ms | ActiveRecord: 0.0ms)

0 个答案:

没有答案