0

我正在尝试将我的 rails 应用程序部署到AWS,但不知何故,只有默认的欢迎页面有效(显示“您正在 rails 上骑 ruby​​!”的那个页面)并且所有其他页面都不起作用。然后,我按照 AWS文档中的说明创建了最基本的应用程序 并检查了日志文件。当我单击“关于您的应用程序的环境”时,日志文件会记录:

Started GET "/rails/info/properties" for 24.6.158.239 at 2013-06-30 05:39:22 +0000

ActionController::RoutingError (No route matches [GET] "/rails/info/properties"):
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'

actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'

railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'

railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'

activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'

railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'

actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'

rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'

rack (1.4.5) lib/rack/runtime.rb:17:in `call'

activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'

rack (1.4.5) lib/rack/lock.rb:15:in `call'

rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'

rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'

rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'

rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'

rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'

railties (3.2.13) lib/rails/engine.rb:479:in `call'

railties (3.2.13) lib/rails/application.rb:223:in `call'

...

但是,此链接适用于我的本地计算机。我不知道为什么会发生这种情况,我不知道这是否与我将自己的 rails 应用程序部署到 AWS 时的错误有关......任何帮助将不胜感激!

4

1 回答 1

0

productionRails 在模式下禁用此路由。在模式下运行应用程序development或为您的应用程序设置适当的根路由。

于 2013-06-30T06:27:16.653 回答