部署后的NodeJS应用程序负载黑屏Azure的Web应用程序 [英] Azure Web App of nodejs application loads blank screen after deployment
问题描述
我想学习使用蔚蓝的Web应用服务部署MEAN堆栈的应用程序。
I'm trying to learn to use the azure web app services to deploy a MEAN stack application.
我连Web应用程序部署到混帐回购协议并单击部署,它似乎已成功完成。
I connected Web App deployments to a git repo and clicked deploy, which it appears to have done successfully.
当我加载Web应用程序的URL在浏览器中,它是一个空白屏幕。
When I load the webapp url in a browser, its a blank white screen.
如何解决这种情况?
推荐答案
我通常使用KUDU调试的Node.js在Azure网站(目前名为Web应用程序)应用程序。我怀疑这个实力,因为根目录是不正确的,即你的网站应该在〜/ your_project /应用
开始,但是在Azure中它是根据推出〜 / your_project
。
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
.
下面是一个KUDU文档。 <一href=\"http://blogs.msdn.com/b/benjaminperkins/archive/2014/03/24/using-kudu-with-windows-azure-web-sites.aspx\" rel=\"nofollow\">http://blogs.msdn.com/b/benjaminperkins/archive/2014/03/24/using-kudu-with-windows-azure-web-sites.aspx
Here is a doc for KUDU. http://blogs.msdn.com/b/benjaminperkins/archive/2014/03/24/using-kudu-with-windows-azure-web-sites.aspx
这篇关于部署后的NodeJS应用程序负载黑屏Azure的Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!