If you:
- Run a separate ember + backend server, and
- want to enable browser auto-refresh using .ember-cli, use the following config:
{
"disableAnalytics": true, // not necessary
"usePods": true, // project-dependent
"checkForUpdates": true,
"port" : 4200,
"proxy": "http://localhost:3000/",
"liveReload": true,
"verbose": true
}
If we don't specify "proxy", our app will have hot reloading enabled, but only if we access it via http://localhost:4200 . Unfortunately, if we do that, presumably all of our requests will attempt to access the server running at 4200 rather than 3000, and will therefore fail.
However, if we set the proxy, we can get both hot reloading and our backend API calls working as long as we load our app in-browser at http://localhost:4200/
rather than http://localhost:3000/