在单个webrole中有多个网站的情况下,Azure-TFS构建的问题 [英] Issue with Azure-TFS build in the case multiple websites in single webrole

查看:112
本文介绍了在单个webrole中有多个网站的情况下,Azure-TFS构建的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在以单个网络角色使用和发布多个网站,没有任何问题. 然后,我尝试使用Team Foundation Service实施持续交付,如所述. http://www.windowsazure.com/zh-CN/develop/net/common-tasks/publishing-with-tfs/ 但是问题开始于我尝试使用 (天蓝色)TFS构建.编译辅助站点时,构建始终会失败.

手动打包和部署或使用Powershell脚本打包和部署时没有问题. 为了解决二级站点无法发布的问题,我之前使用了此博客中提到的解决方案

在与辅助网站建立Web角色期间,始终发生错误.

错误格式

:找不到虚拟路径在服务定义文件中配置的辅助站点名称 ./.的物理目录"C:**辅助网站项目名称**".

解决方案

似乎VSO不支持将多个网站部署到Azure Web角色.

确认此处.

我继续建议它作为一项新功能http://www.windowsazure.com/en-us/develop/net/common-tasks/publishing-with-tfs/ But the problem started when i tried to use (azure)TFS builds. The build always fails when compiling the secondary site.

There are no issues when manually packaged and deployed or packaging and deploying using powershell scripts. Earlier to overcome the issue of secondary sites not publishing I used the solution mentioned in this blog michaelcollier.wordpress.com/2013/01/14/multiple-sites-in-a-web-role/ and it worked fine. Now TFS builds fail with or without this hack.

When I checked the build drop folder I noticed that the TFS builds create a folder only for the web role and not for the secondary sites and when the build script looks for that folder of secondary website it fails as there is none.

Any solution for this issue is welcome.

More info--

This is a cloud service and not an azure web site. This web role is part of set of worker and web roles which are deployed together in a deployment.

I used the AzureContinuousDeployment.11.xaml template. I configured the Deployment Settings Name as the cloud service name. And filled in the details of Step 5 - Publishing -- Azure Cloud service as per my deployment setup. I left the step 6 - Publishing Azure website empty as this is not an azure website.

The error anyway is happening during the build of the web role with the secondary website .

Error format

: Cannot find the physical directory 'C:**Secondary Website Project Name**' for virtual path Secondary site name configured in Service definition file./.

解决方案

It appears that VSO does not support deployment of multiple websites to an Azure Web Role.

Confirmation here by Trevor Hancock.

I went ahead and suggested it as a new feature here.

这篇关于在单个webrole中有多个网站的情况下,Azure-TFS构建的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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