Azure Webapp Node.js应用程序无法启动 [英] Azure webapp node.js app not starting

查看:98
本文介绍了Azure Webapp Node.js应用程序无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Azure webapp上部署一个非常简单的express.js应用程序.

I'm trying to deploy a very simple express.js app on Azure webapp.

部署日志显示部署正确通过,但应用程序未启动.检查kudu进程浏览器后,发现node.js进程确实没有运行

The deployment log shows the that the deployment passes correctly but the app doesn't start. Checking the kudu process explorer shows that indeed the node.js process is not running

另一方面,我看不到任何应用程序日志,也没有任何迹象表明该应用程序甚至已启动.

On the other hand I don't see any application logs nor any indication that the app even started.

有没有办法查看节点尝试启动应用程序时发生了什么?

Is there a way to see what happened when the nodeiis tried to start the app?

推荐答案

用于Node.js的Azure Web App正在通过 iisnode 作为本机IIS模块,允许在Windows上的IIS中进行托管.请参阅文档 https://blogs.msdn.microsoft.com/silverlining/2012/06/14/windows-azure-websites-node-js/了解其功能.

Azure WebApp for node.js is running via iisnode as a native IIS module that allows hosting in IIS on Windows. Please see the document https://blogs.msdn.microsoft.com/silverlining/2012/06/14/windows-azure-websites-node-js/ to know its features.

要调试node.js的Web应用程序,建议您参考文档以了解其操作方法.

For debugging the webapp for node.js, I suggest you can refer to the document to know how to do it.

如果您将Visual Studio用作node.js的IDE,则建议在以下位置安装 NTVS 用于调试和部署node.js的VS.请参阅下面的文档以了解如何开始使用.

If you are using Visual Studio as the IDE for node.js, I recommend installing NTVS in VS for debugging and deploying the node.js. Please see the documents below to know how to get started.

  1. 安装NTVS
  2. 安装Node.js和NTVS入门
  1. Installation for NTVS
  2. Install Node.js and get started with NTVS

还有另一个名为 node-inspector 的工具,用于检查node.js应用在Azure上.作为参考,您可以参考文档 http://www.ranjithr.com/?p=98 .

同时,请通过Kudo控制台检查节点Web应用程序中的web.config文件,您可以将代码与Azure门户上Gallery的Express模板生成的示例进行比较.

Meanwhile, please check the web.config file in your node webapp via Kudo Console, you can compare your codes with the sample generated by the template for Express from Gallery on Azure portal.

希望对您有所帮助.如有任何疑问,请随时告诉我.

Hope it help. Any concern, please feel free to let me know.

进程浏览器显示了我的node.js Web应用程序的进程.

The process explorer shows the processes of my webapp for node.js.

这篇关于Azure Webapp Node.js应用程序无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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