简体   繁体   English

在 Azure 应用服务中设置暂存环境

[英]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.

相关问题 无服务器解决方案 (AWS) 中的开发、暂存和生产环境 - Development, Staging and Production environments in serverless solutions (AWS) 将带有wsHttpBinding的WCF服务迁移到Azure应用服务 - Migrating WCF service with wsHttpBinding to Azure App Service 如果 App Service 崩溃,我可以在 Azure 的哪个位置设置 email 地址以接收电子邮件? - Where in Azure can i set the email address to receive emails if an App Service crashes? 无法为 Azure 服务总线队列设置 maxMessageBatchSize - Not able to set maxMessageBatchSize for Azure Service Bus Queue Azure 和 ftp 中的 App Service 文件夹访问 - App Service folder access in Azure with ftp Azure 应用服务 linux 忽略自定义命令 - Azure app service linux custom command ignored Azure Service App 中未定义环境变量 - Environment Variables are undefined in Azure Service App 如何从 Azure 管道中的 Azure 应用服务获取价值 - How to get value from Azure App Service from Azure pipeline 将 Azure Synapse Analytics 链接服务设置为 ODBC 链接服务器 - Setting up Azure Synapse Analytics Linked Service to ODBC linked server 如何使用 terraform 在 AWS 中分离环境(开发、生产、暂存)? - How can I separete environments (dev, prod, staging) in AWS using terraform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM