Azure Web App of nodejs application loads blank screen after deployment

半世苍凉 提交于 2019-12-24 13:18:15

问题


I'm trying to learn to use the azure web app services to deploy a MEAN stack application.

I connected Web App deployments to a git repo and clicked deploy, which it appears to have done successfully.

When I load the webapp url in a browser, its a blank white screen.

How do I troubleshoot this scenario?


回答1:


You should check if the correct ports are opened.

Good luck!




回答2:


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/

Start off by enabling logging in your IISNode.yml file by setting loggingEnabled: true and devErrorsEnabled: true and seeing what the logs say.




回答3:


I usually use KUDU to debug Node.js application on Azure Web Site (currently named Web Apps). I doubted this might because the root directory was incorrect, i.e. your website should be started under ~/your_project/app but in Azure it was launched under ~/your_project.

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



来源:https://stackoverflow.com/questions/31011063/azure-web-app-of-nodejs-application-loads-blank-screen-after-deployment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!