繁体   English   中英

如何在 nodejs 中使用 recyclesignalenabled 从 Azure Api

[英]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');
...
};

我怎么称呼这个 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();
});

应该以这种方式使用还是以其他方式使用?

recycleSignalEnabled用于配置iis,所以只能在web.config中设置。

它应该如下所示。

1. 尽管在路径 #302 中,但没有拾取 node.exe

在此处输入图像描述

2.watchedFiles 相对目录问题 #257

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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