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

regisbsb picture regisbsb · Oct 14, 2014 · Viewed 7.3k times · Source

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.

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?

Answer

regisbsb picture regisbsb · Oct 14, 2014

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