ruby-on-rails-4 - 应用程序未加载:“本地主机没有发送任何数据。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
解决方案
推荐阅读
- laravel - Laravel 模型显示函数返回 null
- spring - setPropertyActionListener 没有在 bean 中设置目标值
- php - 雄辩的顺序关系结果
- spring-boot - spring boot distributed transaction error java.lang.ClassNotFoundException: javax.transaction.TransactionManager
- opengl - 着色器中的条件语句是否成本更高?
- geometry - 将画布放在 Div 元素内
- fabricjs - 如何在fabric js文本框中更改光标的y轴位置
- cluster-analysis - K-modes 集群演化
- r - 在所有方面写入 x 轴标签而不进行缩放
- java - 如何使用 jmeter 加载测试肥皂 api