=Fixed problem with the stoppable wrapper not triggering the listen method on the http server object
This commit is contained in:
@@ -218,9 +218,12 @@ export class ServiceBuilderImpl implements ServiceBuilder {
|
||||
server = http.createServer(app);
|
||||
}
|
||||
|
||||
const stoppableServer = stoppable(server, 0);
|
||||
const stoppableServer = stoppable(
|
||||
server.listen(port, host, () => {
|
||||
logger.info(`Listening on ${host}:${port}`);
|
||||
}), 0);
|
||||
|
||||
stoppableServer.listen(port, host);
|
||||
//stoppableServer.listen(port, host);
|
||||
|
||||
useHotCleanup(this.module, () =>
|
||||
stoppableServer.stop((e: any) => {
|
||||
|
||||
Reference in New Issue
Block a user