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

fix: detect an occupied port and find an open one #122

Merged
merged 3 commits into from
Oct 16, 2019
Merged

Conversation

amcgee
Copy link
Member

@amcgee amcgee commented Oct 15, 2019

This adds a --port switch to the start command and also corrects the behavior when the specified port (by CLI flag, env var, or default 3000) is occupied - instead of silently failing and waiting forever, it warns the user that the port is in use and selects the next available port sequentially to run the dev server.

@amcgee amcgee requested a review from varl October 15, 2019 15:16
@netlify
Copy link

netlify bot commented Oct 15, 2019

Deploy preview for dhis2-app-platform ready!

Built with commit 499001a

https://deploy-preview-122--dhis2-app-platform.netlify.com

@netlify
Copy link

netlify bot commented Oct 15, 2019

Deploy preview for dhis2-app-platform ready!

Built with commit 5cfec32

https://deploy-preview-122--dhis2-app-platform.netlify.com

@amcgee amcgee merged commit a2b1a00 into master Oct 16, 2019
@amcgee amcgee deleted the fix/find-open-port branch October 16, 2019 09:18
dhis2-bot added a commit that referenced this pull request Oct 16, 2019
## [1.5.4](v1.5.3...v1.5.4) (2019-10-16)

### Bug Fixes

* detect an occupied port and find an open one ([#122](#122)) ([a2b1a00](a2b1a00))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 1.5.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants