I'm trying to run some scripts after my site is deployed to azure (via kudu)
I have the following directory structure
-solution
- .deployment
- deploy.cmd
- deployment
- postdeployactions
- test.bat
.deployment looks like this:
[config]
POST_DEPLOYMENT_ACTION_DIR = deployment\postdeployactions\
command = deploy.cmd
deploy.cmd is unmodified from the one generated by azure site deploymentscript --aspWAP pathToYourWebProjectFile.csproj -s pathToYourSolutionFile.sln
(http://blog.amitapple.com/post/38418009331/azurewebsitecustomdeploymentpart2/#.VPYd_PmUeTI)
However test.bat is not getting called.
I have tried setting both POST_DEPLOYMENT_ACTION_DIR and SCM_POST_DEPLOYMENT_ACTIONS_PATH (see https://github.com/projectkudu/kudu/issues/1154)
SCM_POST_DEPLOYMENT_ACTIONS_PATH
or thePOST_DEPLOYMENT_ACTION_DIR
? I have the first one and it used to run my custom batch file in the folder configured, but for some reason this stopped working about 2 months ago or so and I haven't changed anything about files/settings that could impact non-execution? And which folder path did you include? fromhome\site\repository\...
or or fromsite\repository\...
or... What's root for this setting? – Robert Koritnik