如何自定义部署后脚本添加到蔚蓝的网站? [英] How to add a custom post deployment script to azure websites?
问题描述
我的问题是,我需要部署运行后运行自定义CMD文件。
而不是修改部署脚本,我只想补充一点ØMSDOS命令轻松到我的部署。
My problem is that I need to run a custom cmd file after the deploy has run. Instead of modifying the deploy scripts I just want to add a bit o MSDOS commands to my deploy easily.
我需要做的工作是在/source/copyextrafiles.cmd运行在库一个cmd的构建成功后。
The task I need to do is to run a cmd at the repository at /source/copyextrafiles.cmd after the build succeeded.
我怎样才能做到这一点?
How can I achieve that?
推荐答案
在你的网站上的配置选项上蔚蓝的门户网站添加一个应用程序设置条目称为POST_DEPLOYMENT_ACTION与源/ 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.
下面的图片:
Here the picture:
这篇关于如何自定义部署后脚本添加到蔚蓝的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!