0
votes

Before I was shown Octopus Deploy I thought that environment dependent appSettings should be a part of Build Configuration in project properties.

Now in times of software as a service it is a deployment process that buckles everything up.

I want my environment configuration in release process to just open web.config and substitute appsettings and connection strings based on variable names i defined for the release definition.

How can I do it? The closest I could get was Magic chunks. The problem with it is that I have to give it a json with the mapping and I have to define it for each environment separately, so it makes no use of environment variables, really, or at least you have to define it in "enviroment variables" section and then, again, in each process of environment.

enter image description here enter image description here

1

1 Answers

0
votes

You can use the "Tokenizer" task in "Release Management Utility tasks" extension or "Replace Tokens" task.

These tasks can replace the strings in a file with the custom variables in definition.