Disable / turn off LiveReload server in Emberjs / Ember-cli

James Gentes picture James Gentes · Jul 30, 2014 · Viewed 9.4k times · Source

I use Cloud9 IDE, which only exposes port 80 and prevents LiveReload from connecting. I get this error:

GET https://myapp.c9.io:35729/livereload.js?snipver=1 net::ERR_CONNECTION_REFUSED

Unless someone knows of a fix, I'd like to simply turn this feature off / disable it.

I'm running Ember-cli and I can see the task in ember-cli/lib/tasks/serve.js and I've commented it out, but it didn't do the trick:

/*
    var liveReloadServer = new LiveReloadServer({
      ui: this.ui,
      analytics: this.analytics,
      watcher: watcher
    });
*/

It's buried in enough places that I'm afraid to npm remove it, as I think that would just create bigger problems.

Answer

Dhaulagiri picture Dhaulagiri · Jul 30, 2014

You should be able to disable live reload by starting your sever like this:

ember server --live-reload=false