[英]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.