How to deploy a signal R self host server on azure web app

丶灬走出姿态 提交于 2019-12-23 02:36:09

问题


I am new to azure and I have an web app running on Azure web app and I have my signal-R self host as an console application. I want to deploy the signal r self host conbsole app to azure. What are the steps I need to take?


回答1:


@esther fang,

please reference below tutorial, one thing need to be aware is, you will need to manually enable web socket for you site.

http://www.asp.net/signalr/overview/deployment/using-signalr-with-azure-web-sites

Quote:

Deploying a SignalR Web App to Azure App Service

SignalR doesn't add any particular complications to deploying an application to Azure versus deploying to an on-premises server. An application that uses SignalR can be hosted in Azure without any changes in configuration or other settings (though for WebSockets support, see Enabling WebSockets on Azure App Service below.) For this tutorial, you'll deploy the application created in the Getting Started Tutorial to Azure.




回答2:


You can host your console application on Azure as Web or Worker Role or even on a virtual machine managed by you. Here is a blog post comparing Azure Web and Worker Roles.

You can find the steps you have to take in order to set it up in the following answer:

Hosting console application on Azure or Amazon, is it possible?



来源:https://stackoverflow.com/questions/38274534/how-to-deploy-a-signal-r-self-host-server-on-azure-web-app

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