Azure Web应用程序交换后 [英] Azure web apps post swap

查看:83
本文介绍了Azure Web应用程序交换后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Azure网站上使用名为 staging 的部署插槽.

I'm using a deployment slot called staging on my Azure web.

我的应用程序使用某些特定的文件设置.交换后我将替换这些文件.

My application use some specfic files settings.I would replace these file after swapping.

是否可以进行后交换?交换完成后,我想自动自动替换一些文件(放置新设置)

Is there a way to do a post-swap ? I'd like to replace some files automatically when the swap is finish ( to put the new settings )

谢谢

推荐答案

我认为对您来说阻力最小的路径将是使用

I think that the path of least resistance for you is going to be to use an Azure DevOps Pipeline. A pipeline is made up of one or more tasks, and there are lots of tasks to choose from.

您可以从特定分支中签出源代码,构建,发布到插槽,交换插槽以及

You can check out source code from a specific branch, build, publish to a slot, swap slots, and copy files using scripted pipelines.

这是完整列表可用任务.如果您要将文件从一个仓库中复制到一个地方,只需查看命令行任务.管道运行在Windows或Linux计算机上(选择Build Agent时,您可以选择),因此您可以使用普通的DOS复制命令来移动文件.

Here is a full list of available tasks. If you would like to copy files from within a repo from one place to another, just take a look at the command line task. The pipeline runs on a Windows or Linux machine (your choice when you choose a Build Agent), so you can use normal DOS copy commands to move files around.

这篇关于Azure Web应用程序交换后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆