When I run my Octopus deploy with the “Automatically run configuration transformation files” setting turned on in my “Test” environment everything works great - the transformation works properly, the web site deploys properly to IIS.
However I notice in the deployed folder instead of seing one file called “Web.Config” with the transformed values I see all of the config files there like so:
Thanks for getting in touch! As a rule of thumb Octopus will deploy anything you have inside the Nuget package (in this case all your config files). The fact that we do not delete the “other web configs” is actually by design. We consider config files very critical files, and we do not want to assume we have to delete them on our customer’s behalf.
If you want to delete the extra configs (web.*.config) and keep just the web.config, you can:
However I am new to Octopus and have no idea how to get this working.
Is there a tutorial to help?
[image: --]
Ken Burkhardt
[image: http://]about.me/kenburkhardt http://about.me/kenburkhardt
"Every generation imagines itself to be more intelligent than the one that
went before it, and wiser than the one that comes after it." - George Orwell
Currently there is no tutorial or documentation page I can point you at.
However hopefully it is pretty straight forward:
On the library page there is a copy to clipboard button.
Then inside of Octopus you have Library -> Step templates.
There is an import button in the second tier top navigation that you can paste the copied library step to.
Hopefully the rest is easy enough to figure out using the library script information!
When it is all saved, this step will be available to add in projects process add a step.
[image: --]
Ken Burkhardt
[image: http://]about.me/kenburkhardt http://about.me/kenburkhardt
"Every generation imagines itself to be more intelligent than the one that
went before it, and wiser than the one that comes after it." - George Orwell