简体   繁体   English

部署后,nodejs应用程序的Azure Web App加载空白屏幕

[英]Azure Web App of nodejs application loads blank screen after deployment

I'm trying to learn to use the azure web app services to deploy a MEAN stack application. 我正在尝试学习使用Azure Web应用程序服务来部署MEAN堆栈应用程序。

I connected Web App deployments to a git repo and clicked deploy, which it appears to have done successfully. 我将Web App部署连接到git repo,然后单击“ deploy”(部署似乎已成功完成)。

When I load the webapp url in a browser, its a blank white screen. 当我在浏览器中加载webapp网址时,白屏。

How do I troubleshoot this scenario? 如何解决这种情况?

You should check if the correct ports are opened. 您应该检查是否打开了正确的端口。

Good luck! 祝好运!

There are various steps for debugging Node.js web apps on Azure Web Apps here: https://azure.microsoft.com/en-us/documentation/articles/web-sites-nodejs-debug/ 在此处可以通过各种步骤在Azure Web Apps上调试Node.js Web应用程序: https : //azure.microsoft.com/en-us/documentation/articles/web-sites-nodejs-debug/

Start off by enabling logging in your IISNode.yml file by setting loggingEnabled: true and devErrorsEnabled: true and seeing what the logs say. 首先通过设置loggingEnabled:true和devErrorsEnabled:true并查看日志中的内容来启用IISNode.yml文件中的日志记录。

I usually use KUDU to debug Node.js application on Azure Web Site (currently named Web Apps). 我通常使用KUDU在Azure网站(当前称为Web Apps)上调试Node.js应用程序。 I doubted this might because the root directory was incorrect, ie your website should be started under ~/your_project/app but in Azure it was launched under ~/your_project . 我怀疑这可能是因为根目录不正确,即您的网站应该在~/your_project/app下启动,而在Azure中却是在~/your_project下启动。

Here is a doc for KUDU. 这是KUDU的文档。 http://blogs.msdn.com/b/benjaminperkins/archive/2014/03/24/using-kudu-with-windows-azure-web-sites.aspx http://blogs.msdn.com/b/benjaminperkins/archive/2014/03/24/using-kudu-with-windows-azure-web-sites.aspx

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

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