是否完全关闭nodeJs Web应用程序? [英] Gracefull shutdown of nodeJs web app?

查看:152
本文介绍了是否完全关闭nodeJs Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在将关闭通知发送到nodeJs Azure Web App的某种机制?在Windows和Linux Web应用程序上的部署过程中,节点进程刚刚被杀死,我们的应用程序无法运行其关闭序列.似乎更多 就像黑客一样,只是制作一个虚拟的Web应用程序,只是将我们的代码粘贴到网络作业中.

Is there a some mechanism to send a shutdown notification to a nodeJs Azure Web App? During the deployment process on both windows and linux web apps, the node process is just killed and our application is unable to run its shutdown sequence. It seems more like a hack to just make a dummy web app just to stick our code into a webjob.

谢谢

推荐答案

不确定我是否完全理解您的问题.您能再澄清一点吗?

Not sure I am fully understanding your issue. Can you clarify a bit more? 

-您是否正在使用Cloud Services或Azure App Services?

-Are you using Cloud Services or Azure App Services? 

-您是否在使用部署插槽?

-Are you making use of deployment slots?

-您是否正在将更新推送到现有应用?您期望得到什么结果?

-Are you pushing updates to an existing app? What is you expected outcome? 

请提供以上信息以及您认为可能有用的其他背景信息.或您基于设计的任何文档.

Please provide the above and any additional background information you think might be useful. Or any docs you are basing your design off of. 


这篇关于是否完全关闭nodeJs Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆