gpt4 book ai didi

ruby-on-rails - 在 Rails 应用程序上运行 ruby​​ 时遇到问题

转载 作者:数据小太阳 更新时间:2023-10-29 08:38:04 25 4
gpt4 key购买 nike

我试图在服务器上运行应用程序,但日志文件给我一个错误

You may have mistyped the address or the page may have moved.

在日志文件中

[2014-03-12T09:50:22.614788 #1647] INFO -- : Started GET "/" for 84.38.185.44 at 2014-03-12 09:50:22 +0000 F, [2014-03-12T09:50:22.771502 #1647] FATAL -- : ActionController::RoutingError (No route matches [GET] "/"): actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call'
actionpack (4.0.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in
call' railties (4.0.2) lib/rails/rack/logger.rb:38:in call_app'
railties (4.0.2) lib/rails/rack/logger.rb:20:in
block in call' activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in block in tagged'
activesupport (4.0.2) lib/active_support/tagged_logging.rb:25:in
tagged' activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in tagged'
railties (4.0.2) lib/rails/rack/logger.rb:20:in
call' actionpack (4.0.2) lib/action_dispatch/middleware/request_id.rb:21:in call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in
call' rack (1.5.2) lib/rack/runtime.rb:17:in call'
activesupport (4.0.2) lib/active_support/cache/strategy/local_cache.rb:83:in
call' rack (1.5.2) lib/rack/sendfile.rb:112:in call'
railties (4.0.2) lib/rails/engine.rb:511:in
call' railties (4.0.2) lib/rails/application.rb:97:in call'
unicorn (4.7.0) lib/unicorn/http_server.rb:580:in
process_client' unicorn (4.7.0) lib/unicorn/http_server.rb:660:in worker_loop'
unicorn (4.7.0) lib/unicorn/http_server.rb:527:in
spawn_missing_workers' unicorn (4.7.0) lib/unicorn/http_server.rb:153:in start'
unicorn (4.7.0) bin/unicorn:126:in
' /usr/local/rvm/gems/ruby-2.0.0-p353/bin/unicorn:23:in load'
/usr/local/rvm/gems/ruby-2.0.0-p353/bin/unicorn:23:in
' /usr/local/rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in eval'
/usr/local/rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in
'

我可以用它做什么?

最佳答案

似乎没有定义根路由。打开你的 route.rb 广告检查是否有这样的东西:

root :to => "controller#index"

关于ruby-on-rails - 在 Rails 应用程序上运行 ruby​​ 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22347871/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com