Nuxt/packages/server
Ricardo Gobbo de Souza 1d78027e2b fix: offer a new port and listen if already used, use consola on server error (#4428)
* Use consola on server error

* fix style

* ignore coverage

* use `consola.error(e)`

* formatting server error

* fix style

* offer a new port and listen

* fix style

* simplify return

* Revert "fix style"

This reverts commit 770347adb9.

* Revert "simplify return"

This reverts commit 26f2588b2f.

* simplified tests

* remove dependency `get-port`

* using port `0` to assign a random free port

* update `this.port` value with `address.port`

* For production, use `consola.fatal`

* pass options.dev from server to listener constructor

* add dev on constructor

* improve serverErrorHandler and close

* Update listener.js

* improve serverErrorHandler

* improve the way to handle listen errors

* fix missed line

* fully close old server before listening on a random port

* update listen.test
2018-11-30 16:32:15 +01:00
..
src fix: offer a new port and listen if already used, use consola on server error (#4428) 2018-11-30 16:32:15 +01:00
CHANGELOG.md merge 2.x changes into dev 2018-11-26 21:32:10 +03:30
package.js refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30
package.json merge 2.x changes into dev 2018-11-26 21:32:10 +03:30