ember-cli / ember-cli/ember-cli-inject-live-reload
Possible to pull liveReloadBaseUrl from environment?
- Dominant language
- JavaScript
- Stars
- 23
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
My dev machine is not the same as the machine I am using to test the app. I use full ip like `http://192.168.x.x:3000` to talk to the (rails) server. I am using the lightning fast ember-cli-deploy to do my development. I've run into an issue where the ember-cli-live-reload.js url is pointing to the rails server and not the ember server. I am aware that I can set the `liveReloadBaseUrl` in `.ember-cli` and make it work that way, but my peers might not have the same development environment as I do. So I cannot go hardcoding the baseUrl into the `.ember-cli` file.
Possible suggestions:
- Pull it from the environment where the `host` is already being set
- Configure it in the `ember-cli-build.js` like so:
```
...
emberCLILiveReload: {
baseUrl: process.env.ASSET_HOST || "localhost:4200"
}
...
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.