Is it possible to override a connection string from either appveyor.yaml or the UI Settings?

ryan's Avatar

ryan

01 Aug, 2014 06:44 PM

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?

  1. Support Staff 1 Posted by Feodor Fitsner on 01 Aug, 2014 07:23 PM

    Feodor Fitsner's Avatar

    To override during the deployment?

  2. 2 Posted by ryan on 01 Aug, 2014 07:36 PM

    ryan's Avatar

    No, before building.

  3. 3 Posted by ryan on 01 Aug, 2014 08:05 PM

    ryan's Avatar

    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?

  4. Support Staff 4 Posted by Feodor Fitsner on 03 Aug, 2014 12:17 PM

    Feodor Fitsner's Avatar

    Yes, you can update config settings when publishing with Web Deploy: http://www.appveyor.com/docs/deployment/web-deploy#web-deploy-param...

  5. 5 Posted by kristoffer on 03 Aug, 2014 03:04 PM

    kristoffer's Avatar

    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

  6. ryan closed this discussion on 22 Sep, 2017 04:01 PM.

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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM