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

前端 未结 2 382
悲哀的现实
悲哀的现实 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:37

    An alternative in addition to the solutions already provided is to copy the script in to a specific folder provided for post deployment action hooks.

    So after creating a new directory in "D:\home\site\deployments\tools\" named "PostDeploymentActions", you could just add script files (.bat, .cmd or .ps1) into the directory and they will all run, one by one, after each deployment.

提交回复
热议问题