Teardown server on SIGTERM

This commit is contained in:
Daniel Imms 2019-08-20 10:17:50 -07:00
parent 64716dd3b0
commit 68660775ab

View file

@ -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();
}