问题
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