Pre deployment script

Automated deployment for web applications and databases

Pre deployment script

Postby senthildekumar » Wed Jul 30, 2014 12:22 pm

Hi All
There are some scripts that I want to execute manually before the Deployment manager performs a schema compare. For instance there could be some large index rebuilds that needed to be performed which takes a long time to complete. Will it be possible for me to specify them as part of pre-deployment so that the deployment manager executes these scripts and then perform the schema compare and deploy the rest of the changes.
Regards
Senthil
senthildekumar
 
Posts: 4
Joined: Wed Jul 30, 2014 12:13 pm

Postby chirayu » Tue Aug 05, 2014 3:17 pm

Hi

Sorry for the delay in getting back to you.

You can run custom PowerShell scripts before, during and after deployments. Basically you need to add PowerShell scripts to your NuGet package with certain names. Deployment Manager then calls the script as part of a deployment.

To find out more about this: http://documentation.red-gate.com/displ ... deployment

Does this solve your problem?

Chirayu
Chirayu Shishodiya
Software Engineer - Deployment Manager
Red Gate
chirayu
 
Posts: 73
Joined: Mon Sep 17, 2012 5:48 pm

Postby senthildekumar » Wed Aug 06, 2014 2:11 pm

Thanks for the response Chirayu..

To confirm if I have made some scripts that creates indexes and add it as part of powershell scripts that are to be executed before deployment then that will be ignored when Deployment Manager creates its own script for deployment meaning the index I had added will not be part of the script that is generated by deployment manager..
Regards
Senthil
senthildekumar
 
Posts: 4
Joined: Wed Jul 30, 2014 12:13 pm


Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests