Teardown server on SIGTERM
This commit is contained in:
parent
64716dd3b0
commit
68660775ab
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ export async function launch(_args: string[]): Promise<void> {
|
|||
server.stdout.on('data', e => console.log('Server stdout: ' + e));
|
||||
process.on('exit', teardown);
|
||||
process.on('SIGINT', teardown);
|
||||
process.on('SIGTERM', teardown);
|
||||
endpoint = await waitForEndpoint();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue