Azure webapp node.js 应用程序未启动 [英] Azure webapp node.js app not starting

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

问题描述

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

部署日志显示部署正确通过,但应用程序未启动.检查 kudu 进程资源管理器显示确实 node.js 进程没有运行

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

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

解决方案

Azure WebApp for node.js 正在通过

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

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?

解决方案

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.

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

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. Installation for NTVS
  2. Install Node.js and get started with NTVS

And there is an other tool called node-inspector for inspecting the node.js app on Azure. As reference, you can refer to the doc http://www.ranjithr.com/?p=98.

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.


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

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

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