Blue/green deployments with AppVeyor Deployment Agent

peter.morlion's Avatar

peter.morlion

17 Nov, 2022 07:47 AM

Hi,

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.

Thanks

  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

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

Recent Discussions

27 Jan, 2023 08:06 PM
27 Jan, 2023 08:05 PM
25 Jan, 2023 03:23 PM
25 Jan, 2023 03:22 PM
23 Jan, 2023 03:29 PM