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.
这也允许在一个 Repo 中使用多项目解决方案,例如,如果您在一个解决方案中有 WebAPI 和 Web App,您可以配置 Azure 网站来部署特定项目.像这样:
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:
我已经试过了,效果很好.
I have tried this and works a treat.
这篇关于Azure 网站部署特定的 Web 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!