简体   繁体   中英

How to use recyclesignalenabled in nodejs from Azure Api

https://docs.microsoft.com/en-us/azure/app-service/app-service-web-nodejs-best-practices-and-troubleshoot-guide#recyclesignalenabled

const gracefulShutdown = async () => {
  console.log('Gracefully shutdown');
...
};

How do I call this function through Azure?

process.on('SIGTERM', async () => {
  console.log('Process exited (via SIGTERM)');

  await gracefulShutdown();
});

process.on('SIGINT', async () => {
  console.log('Process exited (via SIGINT)');

  await gracefulShutdown();
});

Should it be used this way or otherwise?

recycleSignalEnabled is used to configure iis, so it can only be set in web.config.

It should be like below.

1. Not picking up node.exe despite being in path #302

在此处输入图像描述

2. watchedFiles relative directory problem #257

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM