How to add a custom post deployment script to azure websites?

前端 未结 2 379
悲哀的现实
悲哀的现实 2020-12-08 23:18

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

2条回答
  •  粉色の甜心
    2020-12-08 23:21

    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: enter image description here

提交回复
热议问题