[英]Set up staging environments in Azure App Service
I followed this article to learn about staging environments https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots .我按照这篇文章了解了暂存环境https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots 。 What are the code changes required in order to set up staging environments in Azure App Service?
在 Azure App Service 中设置暂存环境所需的代码更改是什么?
What makes you think code changes are required?是什么让您认为需要更改代码? A staging slot is in its essence it is just a deployment target.
暂存槽本质上只是一个部署目标。
That said, the one thing I can think of is making sure your application does not contain hardcoded configuration that is different between test and prod environments.也就是说,我能想到的一件事是确保您的应用程序不包含测试环境和生产环境之间不同的硬编码配置。
If the ARM template is well parameterized it won't need any changes too.如果 ARM 模板参数化良好,它也不需要任何更改。 The build pipeline should be able to deploy to multiple environments (dev/test, prod etc) by supplying different parameters to the template.
通过向模板提供不同的参数,构建管道应该能够部署到多个环境(开发/测试、生产等)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.