问题描述
我一直在以单个网络角色使用和发布多个网站,没有任何问题.然后,我尝试使用Team Foundation Service实施持续交付,如所述. http://www.windowsazure.com/zh-CN/develop/net/common-tasks/publishing-with-tfs/但是问题开始于我尝试使用(天蓝色)TFS构建.编译辅助站点时,构建始终会失败.
手动打包和部署或使用Powershell脚本打包和部署时没有问题. 为了解决二级站点无法发布的问题,我之前使用了此博客中提到的解决方案 michaelcollier.wordpress.com/2013/01/14/multiple-sites-in-a-web-role/,效果很好.现在无论有没有这种破解,TFS构建都会失败.
当我检查构建放置文件夹时,我注意到TFS构建仅为Web角色而不是辅助站点创建一个文件夹,并且当构建脚本查找辅助网站的文件夹时,它会失败,因为没有文件夹./p>
欢迎针对此问题的任何解决方案.
更多信息-
这是一个云服务,而不是一个天蓝色的网站.此Web角色是在部署中一起部署的辅助角色和Web角色的一部分.
我使用了AzureContinuousDeployment.11.xaml模板.我将部署设置名称"配置为云服务名称.并按照我的部署设置填写步骤5-发布-Azure云服务的详细信息.我离开了步骤6-将Azure网站发布为空,因为这不是一个天蓝色的网站.
在与辅助网站建立Web角色期间,始终发生错误.
错误格式
:找不到虚拟路径在服务定义文件中配置的辅助站点名称 ./.的物理目录"C:**辅助网站项目名称**".
似乎VSO不支持将多个网站部署到Azure Web角色.
确认此处.
我继续建议它作为一项新功能此处.
I have been using and publishing multiple websites in single web role without any issues.Then I tried implementing continuous delivery with Team foundation service as mentioned inhttp://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构建的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!