如何将自定义部署后脚本添加到 azure 网站? [英] How to add a custom post deployment script to azure websites?

查看:29
本文介绍了如何将自定义部署后脚本添加到 azure 网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是我需要在构建后运行一个自定义的 cmd 文件.而不是修改部署脚本,我只想轻松地对我的部署运行一些 MSDOS 命令.

My problem is that I need to run a custom cmd file after the build. Instead of modifying the deployment scripts I just want to run few MSDOS commands to my deployment easily.

我需要做的任务是在构建成功后在位于/source/copyextrafiles.cmd 的存储库中运行 cmd.

The task I need to do is to run a cmd at the repository located at /source/copyextrafiles.cmd after the build succeeded.

我怎样才能做到这一点?

How can I achieve that?

推荐答案

在您网站的 CONFIGURE 选项卡上的 azure 门户中,添加一个名为 POST_DEPLOYMENT_ACTION 的应用设置"条目,其值为 source/copyextrafiles.cmd保存,下次部署将在部署后为您运行 cmd.

At the azure portal on the CONFIGURE tab of your website add a "app settings" entry called POST_DEPLOYMENT_ACTION with the value of source/copyextrafiles.cmd Save and the next deploy will run the cmd for you after the deploy.

图片如下:

这篇关于如何将自定义部署后脚本添加到 azure 网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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