More details on Deployment Groups?

Following up on: http://help.appveyor.com/discussions/questions/485-what-is-an-agent...

I have apps that deploy to multiple servers (e.g. same app, two different web servers in a farm). Would a group be helpful here? How is it used, do you specify to deploy to a group rather than an environment? Or is it just a UI grouping? If it is an Appveyor Agent, do you need to set the group on the server install too, or is setting it in Provider settings enough?

  1. Deployment group works together with "environment access key". Groups are useful when your build produces multiple artifacts which are parts/tiers of a single application and must be deployed together. For example, this can be Web app deployed to front-end (let's say web group) and Windows service deployed to back-end (svc group).

    Environment settings in this case are:

    Environment access key: ABC123
    
    web_app.deploy_website: true
    web_app.group: web
    
    svc_app.deploy_service: true
    svc_app.group: svc
    

    When you install deployment agent you can specify deployment group and use the same environment access key for all machines:

    Web Server 1:
      Access key: ABC123
      Group: web
    
    Web Server 2:
      Access key: ABC123
      Group: web
    
    App Server 1:
      Access key: ABC123
      Group: svc
    
    App Server 2:
      Access key: ABC123
      Group: svc
    

    Hope that helps.

  2. I think so... so, in your case there are 4 servers, 2 groups with 2 servers each. In my case where I just need to deploy same app to two servers, should I just give both the same Access Key and no group and that will work?

  3. Same access key and no group should work as, essentially, you have 1 tier only.

  4. Yes, just verified this! Thanks!

  5. Is there a way to stagger deployments in same environment? E.g. I have two servers in same environment (same access key) and I'd like to deploy an app to one server first, then the other. Is that possible? I know I can do it with two environments - I had that working before, just wondering what the options are.

  6. Right, having two environments is the only option.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 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