mirror of
https://github.com/unraid/api.git
synced 2026-01-07 17:19:52 -06:00
doc(api): document ready signal during nest server boot
This commit is contained in:
committed by
Pujit Mehrotra
parent
3c27b51ab8
commit
b9947108a4
@@ -48,6 +48,10 @@ export async function bootstrapNestServer(): Promise<NestFastifyApplication> {
|
||||
const result = await server.listen({ port: parseInt(PORT), host: '0.0.0.0' });
|
||||
console.log('Server listening on %s', result);
|
||||
}
|
||||
|
||||
// This 'ready' signal tells pm2 that the api has started.
|
||||
// PM2 documents this as Graceful Start or Clean Restart.
|
||||
// See https://pm2.keymetrics.io/docs/usage/signals-clean-restart/
|
||||
if (process.send) {
|
||||
process.send('ready');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user