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

2

6

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. 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

  # 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? Any suggestion will be appreciated. Thanks

Calvin answered 21/9, 2015 at 4:37 Comment(0)
F
14

You need to run bundle exec guard in order to run the make livereload monitor.

Felisha answered 23/9, 2015 at 4:55 Comment(2)
Where do I run this command? Which folder? I get the error - bundle: command not found. But when I run npm bundle --version i get 3.10.3.Inbreathe
Please, tell how and where to run this command. Thank-YouZambia
R
0

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
Rainband answered 26/2, 2017 at 5:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.