|
| Test/Dev Environment by either port number or directory path |
 |
Wed, 2 Aug 2006 19:14:06 +0000 |
Hi All,
I have a web.config file that has database connections to my prod db. When I'm
in test, I need to comment it out and uncomment my test db conn string. Is
there a way to use different web.config files, for example 'web-test.config' and
'web-prod.config', and have IIS read the path or port in order to use the
correct config file?
I trying to avoid putting a snippet of code on every page to check the
environment. If it comes down to that, then please point me to an example or to
the docs.
Thanks!
Curtis
|
| Post Reply
|
| Re: Test/Dev Environment by either port number or directory path |
 |
Wed, 2 Aug 2006 19:17:37 +0000 |
Nothing in IIS, but you could set up two separate sites with identical files
except for the web.config.
Jeff
|
| Post Reply
|
| Re: Test/Dev Environment by either port number or directory path |
 |
Wed, 2 Aug 2006 20:24:19 +0000 |
That's exactly how I handle dev/test/prod.
.
|
| Post Reply
|
| Re: Test/Dev Environment by either port number or directory path |
 |
Wed, 2 Aug 2006 20:24:52 +0000 |
Simple solution. I didn't even think of that. Thanks, Jeff.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|