Issue with Azure-TFS build in the case multiple websites in single webrole

99封情书 提交于 2019-12-11 03:55:32

问题


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 in 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./.


回答1:


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.




回答2:


This solution is working pretty well for me. It allows you to use TFS build to publish multiple sites in a single web role.

http://blogs.msdn.com/b/davidhardin/archive/2013/01/18/building-and-packaging-virtual-applications-within-azure-projects.aspx



来源:https://stackoverflow.com/questions/16869047/issue-with-azure-tfs-build-in-the-case-multiple-websites-in-single-webrole

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