зеркало из https://github.com/github/docs.git
Prevent warmserver from blocking the port from being attached (#16150)
Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
This commit is contained in:
Родитель
2cf68d7640
Коммит
8a26395e79
|
@ -17,7 +17,7 @@ if (!module.parent) {
|
|||
portUsed.check(port).then(async status => {
|
||||
if (status === false) {
|
||||
// If in production, warm the server at the start
|
||||
if (process.env.NODE_ENV === 'production') await warmServer()
|
||||
if (process.env.NODE_ENV === 'production') warmServer()
|
||||
|
||||
// workaround for https://github.com/expressjs/express/issues/1101
|
||||
const server = require('http').createServer(app)
|
||||
|
|
Загрузка…
Ссылка в новой задаче