简体   繁体   English

与'ws:// localhost:35729 / livereload'的WebSocket连接失败:连接建立错误:net :: ERR_CONNECTION_REFUSED

[英]WebSocket connection to 'ws://localhost:35729/livereload' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

Hi I've assigned a existing running project after the previous developer left the company.I just cloned the project from github and did bundle. 嗨我在上一个开发人员离开公司之后已经分配了一个现有的运行项目。我只是从github克隆了该项目并进行了捆绑。 On running the project I get the following error on browser console. 在运行项目时,我在浏览器控制台上收到以下错误。

WebSocket connection to 'ws://localhost:35729/livereload' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

It is my first day in office and it is ruining me. 这是我上任的第一天,它毁了我。

Here is my gem file content 这是我的宝石文件内容

group :development do
  gem 'guard-livereload', require: false
  gem 'rack-livereload'
  gem 'rb-fsevent',       require: false
  gem 'guard-rspec',      require: false
  gem 'annotate'
  gem 'zeus', '0.15.1'
  gem 'i18n-tasks', '~> 0.6.2'
  gem 'quiet_assets'
  gem 'better_errors'
end

and In development.rb I've also this line 在开发中.rb我也是这一行

  # Automatically inject JavaScript needed for LiveReload
  config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload)

I don't know what is the problem. 我不知道是什么问题。 Did I need to run separate server for LiveReload? 我是否需要为LiveReload运行单独的服务器? Any suggestion will be appreciated. 任何建议将不胜感激。 Thanks 谢谢

您需要运行bundle exec guard才能运行make livereload监视器。

You could find the process listening at the port and kill to restart. 你可以在端口找到进程监听并杀死重启。

Command to find the processes related to the port 用于查找与端口相关的进程的命令

lsof -i :35729

Command to kill the process. 用于终止进程的命令。

kill -i pid

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AJAX返回net :: ERR_CONNECTION_REFUSED - AJAX returns net::ERR_CONNECTION_REFUSED Docker容器的ERR_CONNECTION_REFUSED - ERR_CONNECTION_REFUSED by docker container 从移动设备测试应用程序时出错 - ERR_CONNECTION_REFUSED - Error when testing app from mobile device - ERR_CONNECTION_REFUSED rails cable 连接建立错误:net::ERR_SSL_PROTOCOL_ERROR - rails cable Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR 连接失败:localhost(Errno :: ECONNREFUSED:连接被拒绝 - 连接(2)) - connection failed for: localhost (Errno::ECONNREFUSED: Connection refused - connect(2)) 错误:连接被拒绝-“ localhost”端口25的connect(2) - Error: Connection refused - connect(2) for “localhost” port 25 无法在开发模式下在Rails应用上加载资产:ERR_CONNECTION_REFUSED - Cannot load assets in dev mode on rails app : ERR_CONNECTION_REFUSED Chrome 可以很好地连接到以“rails s”开头的 Rails 服务器,在系统规范期间因 ERR_CONNECTION_REFUSED 失败 - Chrome connects fine to Rails server started with `rails s`, fails with ERR_CONNECTION_REFUSED during system specs Faye,Websocket连接问题:无法与ws:// localhost:9292 / faye建立连接 - Faye, websocket connection problems: can't establish connection with ws://localhost:9292/faye Rails邮件程序连接被拒绝 - localhost - Rails mailer Connection refused - localhost
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM