Is it possible to override a connection string from either appveyor.yaml or the UI Settings?
I'd like to specify a database connection string to override the connection strings found in App.config and Web.config files. Is this possible, or do I need to transform the config files as part of my pre-build steps?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 01 Aug, 2014 07:23 PM
To override during the deployment?
2 Posted by ryan on 01 Aug, 2014 07:36 PM
No, before building.
3 Posted by ryan on 01 Aug, 2014 08:05 PM
I think I found a solution in my FAKE build script. I had just wondered if something were built in for this task. Is there something for deployments?
Support Staff 4 Posted by Feodor Fitsner on 03 Aug, 2014 12:17 PM
Yes, you can update config settings when publishing with Web Deploy: http://www.appveyor.com/docs/deployment/web-deploy#web-deploy-param...
5 Posted by kristoffer on 03 Aug, 2014 03:04 PM
We solved that by having a environment variable and then we read the value from that into a static field and if that isn't present we fallback to configuration file values (app/web.config) example for one of our EF6 solutions attached
ryan closed this discussion on 22 Sep, 2017 04:01 PM.