You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to change my live-reload-host to localhost because my http port is proxied to a development url. It's unclear to find out how to do this.
$ ./node_modules/.bin/ember help | grep reload
--live-reload (Boolean) (Default: true)
--live-reload-host (String) Defaults to host
--live-reload-base-url (String) Defaults to baseURL
--live-reload-port (Number) (Defaults to port number within [49152...65535])
Needs documentation.
--live-reload-host changes the websocket host
--live-reload-base-url changes the javascript location relative to baseURL
--live-reload-port doesn't seem to work in my setup overridden by .ember-cli
I can't seem to change the javascript location. It's always {{rootURL}}/{{baseUrl}}/livereload.js. But I need to change the rootURLfor the livereload location only.
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?
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.
Redsandro
changed the title
live-reload command line arguments not working
live-reload-port command line argument not working
Sep 24, 2018
Redsandro
changed the title
live-reload-port command line argument not working
--live-reload-* command line options need documentation
Sep 24, 2018
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.The text was updated successfully, but these errors were encountered: