简体   繁体   English

将网站和wcf服务发布到Azure

[英]Publish web site and wcf service to azure

I have one solution in VS, which holds a lightweight MVC web site, and a WCF service, that is consumed by that site, that implements some buisness logic. 我在VS中有一个解决方案,它拥有一个轻量级的MVC网站,以及一个由该网站使用的WCF服务,该服务实现了一些商务逻辑。

In my local deployment I have web site at port 3333 and service at port 4444 in iis. 在我的本地部署中,我在iis中的端口3333上有网站,在端口4444上有服务。

I would like to have a deployment in azure, that would be as close as possible to my local deployment, to get rid of all the problems like specifying wcf service address separately for local tests and azure deployments (so that web site on port 3333 could actually see wcf service on localhost:4444, when running in azure). 我想在azure中进行一个部署,该部署应尽可能接近我的本地部署,以摆脱所有问题,例如分别为本地测试和azure部署指定wcf服务地址(以便端口3333上的网站可以当在azure中运行时,实际上在localhost:4444上看到了wcf服务)。

I would be grateful for any info regarding how to achieve this, thanks in advance. 在此先感谢您提供有关如何实现此目标的任何信息。 (In case this is impossible, please, tell me, what is the closest setup?) (如果这不可能,请告诉我最近的设置是什么?)

You can do that but only if you manually edit the WebRode config, there you can define the structure that the target deployment will have (from an IIS point of view) and you can create VirtualDirectories and map them to the folders that correspond to your projects as they will be on the deployment machine. 您可以执行此操作,但是只有在手动编辑WebRode配置时,才可以定义目标部署将具有的结构(从IIS的角度来看),并且可以创建VirtualDirectory并将它们映射到与项目相对应的文件夹中因为它们将在部署计算机上。


This should be all the info you need to get this done: http://www.wadewegner.com/2011/02/running-multiple-websites-in-a-windows-azure-web-role/ 这应该是完成此操作所需的所有信息: http : //www.wadewegner.com/2011/02/running-multiple-websites-in-a-windows-azure-web-role/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM