Last active
May 13, 2016 10:19
-
-
Save Wesley-Lomax/f46f70de5619266573237cf750c306d2 to your computer and use it in GitHub Desktop.
Remove Config Transforms per role
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$files = @('Web.CD.config','ConnectionStrings.CD.config','ConnectionStrings.CM.config') | |
$installDirectory = $OctopusParameters["Octopus.Action[Deploy Site Code].Output.Package.InstallationDirectoryPath"] | |
Get-ChildItem -Path $installDirectory -Include $files -Recurse | foreach { $_.Delete()} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment