Reputation: 11811
I'd like a different web.config when deployed on AppHarbor vs deployed to a local network machine.
In particular, I'd like to turn on Windows Authentication so I can get the current Windows username when on a Windows network but still allow Anonymous users to connect when on AppHarbor.
(Best solution I can think of use AppHarbor Configuration Setting, configure AppHarbor to allow writing to files, then rewrite the web.config on Application_Start. Ugly.)
Upvotes: 1
Views: 227
Reputation: 6916
No need to re-invent the wheel, AppHarbor team has figured this out.
I think Custom web.config transforms and merges is what you're looking for.
Upvotes: 2