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"
}
...
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:3000to 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 theliveReloadBaseUrlin.ember-cliand 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-clifile.Possible suggestions:
hostis already being setember-cli-build.jslike so: