DOS Scripts after Deployment

Hi all,

I am trying to deploy a website, along with some files that will create a database using Octopus. To do this, I have tried making a NuGet package using the NuGet file explorer; however, there is an issue in that I have to have a top level directory in the package whose name has a # in it. If the # isn’t there, the database scripts won’t be run.

My question is, is it possible to run normal DOS scripts right after the deployment so that I can return the # to its rightful place?

Thanks for your help in this matter.

Best wishes,

Hi Conor,

Thanks for getting in touch!

Yes! You can create a postdeploy.ps1 PowerShell script that will run after the deployment and do the renaming that is required.
Here’s a bit of info about PowerShell scripts in Octopus:
This will give you a bit of an idea about when things run:

Hope that helps!


Thanks Vanessa, that worked.

Best wishes,