is there an option to do config transforms at deployment time? like Octopus would do?
We've explored using Parameters and Config Transforms via multiple builds and both approaches have issues:
1. "Parameters" method ultimately ends up being un-auditable and non-reversible which makes me super uncomfortable with using AppVeyor to deploy.
2. Config Transforms via multiple builds could be interesting but then problem is when you deploy a configuration it doesn't show anywhere in history which configuration you deployed. So you end up without any audit trail of what configuration went where. Need more there.
if AppVeyor could do the tranform at the deploy time like Octopus this would be of tremendous help.
Can someone advise if this is possible to do now or will be in the near future?
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
1 Posted by Ilya Finkelshte... on 06 Jun, 2017 05:57 PM
Hello,
Please take a look at Web Deploy Parametrization section and let us know if this helps.
Ilya.
2 Posted by anatoliib on 06 Jun, 2017 06:22 PM
Thanks, this refers to the "parameters" method I mentioned in my post. I didn't see this article get into agent-side config transform methodology, or whether AppVeyor can support that.
Can someone look into this a little further and shed some light on our options?
3 Posted by Ilya Finkelshte... on 06 Jun, 2017 06:37 PM
I did not realize that you are using agent deployment. You can use
deploy.ps1
script, described here, to modify web.config before deployment on target server.4 Posted by anatoliib on 06 Jun, 2017 06:41 PM
interesting, looks that I'd have to write the whole thing - from looking for transform files to applying transform, reporting errors etc.
Is there an existing script that can be used for applying transforms?
5 Posted by Ilya Finkelshte... on 06 Jun, 2017 07:15 PM
Sorry we do not have that kind of scripts handy. However small google search returned this, which looks pretty useful. Also please note that all environment variables passed to Environment deployment (and they can be passed from
appveyor.yml
) are available in that script.6 Posted by anatoliib on 06 Jun, 2017 07:18 PM
Thanks, you know if you would be easier to write this if there was some local way of testing such PS script on the workstation instead of editing it on AppVeyor and retrying to deploy. For that reason it would be also super useful if someone from AppVeyor wrote some initial version that could be tweaked by customers. No?
7 Posted by Ilya Finkelshte... on 06 Jun, 2017 10:26 PM
Agreed, this would be useful. What about doing this together? Could you please create public repo and transforms, describe some scenario in what case what transform should be applied and then we will created and test the script.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:17 AM.