首页 > 解决方案 > 应用程序未加载:“本地主机没有发送任何数据。ERR_EMPTY_RESPONSE”

问题描述

我刚刚花了一周时间将 rails 升级到 4.2.10,并升级了一大堆 gem 等,现在我终于说服 rails 运行没有错误,我的应用程序实际上不会加载。

This page isn’t working
localhost didn’t send any data.
ERR_EMPTY_RESPONSE

我什至不知道从哪里开始尝试调试它。

development.log 文件没有任何错误。整个文件说:

^[[1m^[[36mAppConfiguration Load (0.5ms)^[[0m  ^[[1mSELECT  `configurations`.* FROM `configurations` WHERE `configurations`.`type` IN ('AppConfiguration') AND `configurations`.`name` = 'Default configuration' LIMIT 1^[[0m
Cache read: Spree::Config
Dalli::Server#connect memcached:11211
Cache fetch_hit: Spree::Config
Cache read: Spree::Config
Cache fetch_hit: Spree::Config
Cache read: Spree::Config
Cache fetch_hit: Spree::Config

当我点击页面时,没有打印任何新内容。

docker-compose logs -f abc只是说:

=> Booting WEBrick
=> Rails 4.2.10 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server

[2018-08-17 14:48:01] INFO  WEBrick 1.3.1
[2018-08-17 14:48:01] INFO  ruby 2.1.5 (2014-11-13) [x86_64-linux-gnu]
[2018-08-17 14:48:01] INFO  WEBrick::HTTPServer#start: pid=18 port=3000

我的 Gemfile 有用吗?还有什么可以分享的?

这不是本地浏览器问题,因为也curl使用 响应(52) Empty reply from server

在火狐中:The connection to the server was reset while the page was loading.

ETA:通过-b 0.0.0.0在末尾添加解决bundle exec rails server

标签: ruby-on-rails-4docker-compose

解决方案


推荐阅读