Azure / Easyrtc部署问题 [英] Azure / Easyrtc Deploy problems

查看:102
本文介绍了Azure / Easyrtc部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将EasyRTC服务器部署到azure web app。似乎服务器成功启动,因为我可以看到它返回成功的连接日志。但是,当尝试访问索引/演示页面时,我得到
a"由于发生了内部服务器错误,因此无法显示页面。"

I've deployed EasyRTC server to azure web app. It seems that the server started succesfully as I can see that it returns the successful connection log. However, when trying to access the index/demo pages, I get a "The page cannot be displayed because an internal server error has occurred."



它提供的错误页面没有提供有关错误实际原因的大量信息,给出了

And the error page that it gives doesn't provide much information about the actual cause of the error, giving a


HTTP错误500.1001 - 内部服务器错误

HTTP Error 500.1001 - Internal Server Error

所以我真的被封锁了,因为我不知道如何解决这个问题。

So I'm really blocked here as I dont know how to troubleshoot this.

服务器代码:

推荐答案

我建议你试试看env的端口号变量(var port = process.env.PORT || 1337)。

I would suggest you try by reading the port number from env. variable (var port = process.env.PORT || 1337).

请参阅以下SO链接以获取更多信息,如果有帮助,请告诉我们。

Refer the below SO links for more information and let us know if that helps.

https://stackoverflow.com/questions/36424405/listen-additional-port -microsoft-azure-nodejs

https://stackoverflow.com/questions/17080049/running-a-nodejs-sites-in-azure-websites

--- -------------------------------------------------- -------------------------------------------------- ---------- 

----------------------------------------------------------------------------------------------------------------- 

点击"标记为答案"在帮助您的帖子上,这对其他社区成员有益。

Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.

 


这篇关于Azure / Easyrtc部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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