Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs mention liveReloadHost. Should be liveReloadBaseUrl? #52

Closed
danwenzel opened this issue Aug 8, 2018 · 5 comments
Closed

Docs mention liveReloadHost. Should be liveReloadBaseUrl? #52

danwenzel opened this issue Aug 8, 2018 · 5 comments

Comments

@danwenzel
Copy link

The README for this repo mentions a liveReloadHost option, but this doesn't seem to do anything, and I don't see it anywhere in the code.

Should this be liveReloadBaseUrl? That seems to be what actually changes the url of ember-cli-live-reload.js: https://github.com/ember-cli/ember-cli-inject-live-reload/blob/master/index.js#L41

@danwenzel
Copy link
Author

@rwjblue - ⬆️ - Any insight here? I'd be happy to open a PR.

@Redsandro
Copy link

@danwenzel I tried your suggestion and change the command line option, but I still cannot get it to work. Can you change these parameters using command line options at all?

See #53

@danwenzel
Copy link
Author

@Redsandro - I don't think there's a way to do it via command line options or environment variables. The idea is to add it to your .ember-cli file:

{
  "disableAnalytics": false,
  "usePods": true,
  "liveReloadBaseUrl": "http://localhost:4200/"
}

@Redsandro
Copy link

Redsandro commented Sep 24, 2018

@danwenzel

I don't think there's a way to do it via command line options

There is, according to ember help:

$ 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])

I had trouble because of a firewall but now that I changed the configuration to allow the livereload port, I found that the --live-reload-host does actually work.

Analogous to that, I think that your premise is actually incorrect:

The README for this repo mentions a liveReloadHost option, but this doesn't seem to do anything

The liveReloadHost option does exist. Keep in mind that command line options are dasherized versions of options; e.g.: --live-reload-host

I think the answer to this issue's title is "no" and can safely be closed. There's quite some trial and error involved to substitute clear documentation. I changed my issue to request for clearer documentation.

I believe host is about the livereload websocket, and base-url is about the livereload javascript. I am still unsure.

See also: #33

@danwenzel
Copy link
Author

Thanks for digging into this, @Redsandro ! I'll go ahead and close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants