前的NodeJS preSS应用程序未发布在Azure上 [英] NodeJs express app is not publishing on Azure

查看:145
本文介绍了前的NodeJS preSS应用程序未发布在Azure上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Azure云服务。我要发布的NodeJS(如preSS)API作为蔚蓝云的NodeJS服务。我按照以下链接创建前的NodeJS preSS应用程序。

I am new to azure cloud service. I want to publish nodejs (express) api on as azure nodejs cloud service. I follow below link to create express app in nodejs.

<一个href=\"http://azure.microsoft.com/en-us/documentation/articles/cloud-services-nodejs-develop-deploy-ex$p$pss-app/\" rel=\"nofollow\">http://azure.microsoft.com/en-us/documentation/articles/cloud-services-nodejs-develop-deploy-ex$p$pss-app/

上面的教程是非常好的。我能够创建前preSS应用程序,我在Azure模拟器成功运行。

Above tutorial is very good. I am able to create express app and i run successfully on azure emulator.

问题: - 但是,当我在云还成功发布发布(希望如此),但是当我试图打开Web服务的URL,它给了我500内部服务器错误。

Problem :- But when i publish on cloud it also published successfully (hope so) but when i am trying to open web-service URL , it gives me 500 Internal Server error.

请帮我找出这个问题。

Please help me to figure out this problem.

推荐答案

这是因为在Windows系统中长路径问题创造问题。我的code为E /测试code /天青/采样样本文件夹内安装,以便NPM蔚蓝的模块,因此它创建长层级路径。因此,一些模块没有上传到Azure上。

It was create problem because of long path issue in windows system. My code is in E/TestCode/Azure/Sample so npm azure module installed inside sample folder so it creates long hierarchy path. So some module did not upload to Azure.

解决方案: - 我搬到code至E盘并发布它和它的作品完美的罚款。

Solution :- I moved code to E drive and publish it and it works perfectly fine.

这篇关于前的NodeJS preSS应用程序未发布在Azure上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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