Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 867
Bibek Sharma Avatar asked Sep 21 '15 04:09

Bibek Sharma


1 Answers

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

like image 131
Steve Avatar answered Nov 10 '22 16:11

Steve