[英]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 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?我怎么称呼这个 function 到 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. recycleSignalEnabled
用于配置iis,所以只能在web.config中设置。
It should be like below.它应该如下所示。
1. Not picking up node.exe despite being in path #302 1. 尽管在路径 #302 中,但没有拾取 node.exe
2. watchedFiles relative directory problem #257 2.watchedFiles 相对目录问题 #257
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.