TFS & GO & Chef, oh my: Part 4 - Config dilemma resolved?

Stumbled across this little gem: 'configSource'

It looks like this:
<connectionStrings configSource="config\connectionStrings.config"/>


<add name="DBname" connectionString="Database=DBname;Server=DEVSERVER\DB;user=pp.AccountName;password=DEVpassword;" providerName="System.Data.SqlClient"/>

What we'll do is create three files: (DEV|UAT|PROD).connectionStrings.config

At deployment time the script will determine which file is correct (probably env.var), rename it (strip out env), and delete the other files.  Not pretty, but should be a lot easier to live with than copies of the entire file.  The devs should be amenable to a one-time change of the config file structure.  For the time being, this will be a manual process (it already is), but it should lend itself to automation in future.

Stuff left to figure out:
  • Versioning - we'll do a file for each project and just inject a number on deployment - how to do this?...?
  • Build repository - do we just use Git?  A file share? (the latter for the POC I suspect)
And that's it for the build process!!  I am hopeful the deploy will be even easier...


Popular posts from this blog

In 2020, what will your 100 minutes be?

Breaking hero behaviour with systems thinking

Health check learnings, this time with data!