我刚刚花了一周的时间将rails升级到4.2.10,并升级了一大堆的宝石等等,现在我终于说服了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
进行响应。
在Firefox中:The connection to the server was reset while the page was loading.
ETA:通过在-b 0.0.0.0
的末尾添加bundle exec rails server