簡體   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