Azure的网站部署特定Web项目 [英] Azure websites deploy specific web project
问题描述
我有多个Web项目的解决方案。我想运行它们Azure的网站里面,每一个单独的网站,从同一个Git仓库。
I have a solution with multiple web projects. I want to run them inside Azure Websites, each as a separate website, from the same Git repository.
我如何指定网站运行的Web项目?
How do I specify which website runs which web project?
AppHarbor处理这跟应用程序命名的多个解决方案文件,包含相应的Web项目。我无法找到有关的Azure网站的任何事情。
AppHarbor handles this with multiple solution files named after the applications, containing the respective web project. I cannot find anything about Azure websites.
推荐答案
现在它是作为使用App.Settings而不是.deployment文件一样简单。
Now it is as simple as using App.Settings instead of a .deployment file.
这也允许在一个回购多项目的解决方案,因此,举例来说,如果你有一个的WebAPI和Web应用程序在一个解决方案可以配置Azure的Web站点部署一个特定的项目。像这样:
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:
来源:<一个href=\"https://github.com/projectkudu/kudu/wiki/Customizing-deployments#using-app-settings-instead-of-a-deployment-file\">https://github.com/projectkudu/kudu/wiki/Customizing-deployments#using-app-settings-instead-of-a-deployment-file
我已经试过这和作品一种享受。
I have tried this and works a treat.
这篇关于Azure的网站部署特定Web项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!