Open Redsandro opened 6 years ago
I was specifying the options wrong. The documentation is not entirely clear. Now that I specified host, the host doesn't change. livereload.js
is still requested from the same domain as the domain. What is this option for anyway?
What is this option for anyway?
Ah, it seems to change the hostname for the connection to the websocket that is opened. And then livereload doesn't work anymore, because from a security context, the websocket needs to be on the same hostname. So both hostnames would have to change; the one where the livereload.js
is loaded from, and the one where the websocket is connecting to.
I am trying to change my
live-reload-host
tolocalhost
because my http port is proxied to a development url. It's unclear to find out how to do this.Needs documentation.
--live-reload-host
changes the websocket host--live-reload-base-url
changes the javascript location relative to baseURLoverridden by--live-reload-port
doesn't seem to work in my setup.ember-cli
I can't seem to change the javascript location. It's always
{{rootURL}}/{{baseUrl}}/livereload.js
. But I need to change therootURL
for the livereload location only.