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

Possible to pull liveReloadBaseUrl from environment? #44

Open
sumeetattree opened this issue Oct 6, 2017 · 0 comments
Open

Possible to pull liveReloadBaseUrl from environment? #44

sumeetattree opened this issue Oct 6, 2017 · 0 comments

Comments

@sumeetattree
Copy link

sumeetattree commented Oct 6, 2017

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

1 participant