Azure websites deploy specific web project

丶灬走出姿态 提交于 2019-11-28 05:23:43

Now it is as simple as using App.Settings instead of a .deployment file.

This also allows for multi-project solutions in one Repo, so for example, if you have a WebAPI and a Web App in one solution you can configure an Azure Web Site to deploy a specific project. like so:

Source: https://github.com/projectkudu/kudu/wiki/Customizing-deployments#using-app-settings-instead-of-a-deployment-file

I have tried this and works a treat.

You will need to work with 2 different branches combined with a .deployment file.

So the first branch could have something like this in the .deployment file:

[config]
project = WebProject/WebProjectA.csproj

And branch 2 something like this:

[config]
project = WebProject/WebProjectB.csproj

I came across a good blog post that describes how to do this using a custom deployment script. It is a bit fiddly but is a workable solution until something better is added.

http://blog.amitapple.com/post/38419111245/azurewebsitecustomdeploymentpart3

Edit:

This one is even better and allows you to do it with a couple of extra files at the route of your repo:

http://www.devtrends.co.uk/blog/azure-web-sites-git-deploy-for-multiple-project-solutions

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