Skip to content

Possible to pull liveReloadBaseUrl from environment? #44

Description

@sumeetattree

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions