ember-cli-inject-live-reload icon indicating copy to clipboard operation
ember-cli-inject-live-reload copied to clipboard

Possible to pull liveReloadBaseUrl from environment?

Open sumeetattree opened this issue 7 years ago • 0 comments

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"
}
...

sumeetattree avatar Oct 06 '17 17:10 sumeetattree