Rails 服务器正在运行但不会加载应用程序

问题描述 投票:0回答:0

我在端口 3001 上运行 Rails 服务器,但页面似乎卡在等待本地主机上。 url 是 localhost:3001 并且应用程序不会加载。我不知道这是怎么突然发生的,它在几个小时前运行得非常好。我有另一个在端口 3000 和 3002 上运行的 Rails 服务器,它工作得很好,但不是这个。控制台和网络选项卡上都没有错误。它只是完全空白。 我试过在其他端口等中打开但没有解决方案。 这是我在 rails 终端上得到的输出。我已经使用 sudo lsof 检查过,服务器已启动并正在侦听。只是由于某种原因它不会加载。

/Users/.rvm/gems/ruby-2.7.2/gems/activerecord-5.2.3/lib/active_record/associations/collection_proxy.rb:1004: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead
/Users/.rvm/gems/ruby-2.7.2/gems/web-console-3.7.0/lib/web_console/exception_mapper.rb:31: warning: in `eval'
/Users/.rvm/gems/ruby-2.7.2/gems/activerecord-5.2.3/lib/active_record/relation/delegation.rb:71: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead
/Users/.rvm/gems/ruby-2.7.2/gems/web-console-3.7.0/lib/web_console/exception_mapper.rb:31: warning: in `eval'
/Users/Desktop/app/controllers/home_controller.rb:88: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead
/Users/.rvm/gems/ruby-2.7.2/gems/web-console-3.7.0/lib/web_console/exception_mapper.rb:31: warning: in `eval'
[::1] [c7880fec-4d6d-4dd2-b496-8d801d94180a] [http://localhost:3001/tours/tour] execution expired

我完美地从 3000 获得了 api 响应(3002 从 3000 获取 api)但它就是无法加载。所以,我不认为那与那有任何关系。

ruby-on-rails ruby server localhost
© www.soinside.com 2019 - 2024. All rights reserved.