Blue/green deployments with AppVeyor Deployment Agent

peter.morlion's Avatar


17 Nov, 2022 07:47 AM


I'm planning on using the AppVeyor Deployment Agent. I've used it successfully in my staging environment, which has one server. However, in production, we have a blue/green setup, i.e. two servers. What would be the recommended way to deploy in this case? Obviously, I want to deploy to green if blue is live and only make the switch if the deployment was successful. Should I set up two environments in AppVeyor UI? Because I assume that using the same environment access key on two servers would mean it gets deployed to two servers at once.


  1. Support Staff 1 Posted by Feodor Fitsner on 18 Nov, 2022 12:15 AM

    Feodor Fitsner's Avatar

    Hi Peter,

    Yes, I think you need two deployment environments for that as, you are right, using the same access key would deploy the same build in parallel.

    Also, you would need some sort of synchronization/switching logic in your deployment script.

  2. peter.morlion closed this discussion on 18 Nov, 2022 07:17 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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