问题描述
当前,当通过CI/CD管道将更新推送到Azure Web Apps时,一旦完成配置更改,天蓝色就会强制重启节点.
Currently when pushing updates via our CI/CD pipeline to the Azure Web Apps the nodes are being forcefully rebooted by azure once the configuration changes are completed.
有没有人遇到过一种方法,您可以在单插槽配置中将配置(web.config或其他)更改应用于Web应用,而无需强制重启?
Has anyone come across a way where you can apply a configuration (web.config or other) changes to the web app in a single slot configuration with out the forced restart?
感谢进阶
推荐答案
正如Fabrizio Accatino所说,当您触摸web.config时,IIS会自动重新启动应用程序域.
As Fabrizio Accatino said, when you touch the web.config, IIS automatically restarts the app domain.
如果这样做是为了避免停机,则可以添加部署时段,然后向其中发布最新的项目.要将项目发布到生产环境时,可以交换.有关更多详细信息,请参阅此文章.
If you do this to avoid downtime, you could add a deployment slot and publish your newest project to it. When you want to publish your project to production environment,you can swap them.For more details, refer to this article.
这篇关于是否可以在不重新启动应用程序的情况下对Azure Web App执行配置更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!