-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(server): ensure using a free port for dev console (#5163)
* fix(server): ensure using a free port for dev console * fix(server): don't swallow errors on server start Also print the error message and exit. * fix(server): better error handling on server start * Fail if the explicitly specified port is empty * Always retry on `EADDRINUSE` error if the port hasn't been specified explicitly * Always fail on any errno error expect `EADDRINUSE` * Log the port the server has started at * fix(server): use correct default port value * fix(server): correct port range * fix: remove unnecessary port range Alternative port range makes so sense when `port` is specified: https://github.com/unjs/get-port-please * test: add unit tests
- Loading branch information
1 parent
7ffb249
commit 3a17402
Showing
4 changed files
with
105 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.