emberjs / ember.js

Ember.js - A JavaScript framework for creating ambitious web applications
https://emberjs.com
MIT License
22.47k stars 4.21k forks source link

`ember serve`: Livereload port finding and binding is not atomic #15975

Closed paddor closed 6 years ago

paddor commented 6 years ago

Starting two ember serve processes (e.g. to test a high availability setup) using a Procfile and Hivemind/Overmind (they're like Foreman), one of them usually fails like this:

Livereload failed on http://localhost:49153.  It is either in use or you do not have permission.

Relevant lines from the Procfile:

ember-primary: cd webui && ember serve --port 4200
ember-backup: cd webui && ember serve --port 4201

Running one of them with a prepended sleep 10; often helps, but not always. Maybe you could make that section atomic where Ember tries to find an available port and bind to it?

btecu commented 6 years ago

Probably belongs in https://github.com/ember-cli/ember-cli

rwjblue commented 6 years ago

Agreed, @paddor would you mind moving the issue over to ember-cli's repo?

paddor commented 6 years ago

Sure, just did. Thanks anyway!