Home
TeamSite
Environment-specific web.config files
DanielTA
Hi all, I have environment-specific web.config files in each of my deployment destination directories (dev, model, production). Each time I do a deployment, the web.config file in the TeamSite branch overwrites the existing web.config file in the destination directory. Is there some way to keep this from happening? The same is happening for my global.asa file and bin directory.
Even if I delete the web.config from the TS branch, on the next deployment, the web.config file will be deleted because TS is synching up the staging version with the destination directory.
I am using TeamSite version 6.5.0 SP3 and OpenDeploy 6.0.2 Receiver and SP1
Find more posts tagged with
Comments
nipper
That is easy, exclude that file in the deployment.
Also, you may want to use file list deployments instead of compare folders. That way you only deploy what you wanted not everything.
groups2.rptdesign
DanielTA
how do I use list file deployments instead of compare folders? Is there a setting to choose or a configuration to update?
nipper
Well that depends on how you invoke the deployment.
The deployment config file will need to be changed as will the way the deployment is invoked. Setting it to use a deploy list file is easy, then you need to *create* that deploy list. That is typically does in the workflow. You may have a deploy task which executes the deployment. In that (typically perl script) you would generate a filelist and invoke OD using that deployment.
HTH
Andy