More details on Deployment Groups?

brian.donahue's Avatar

brian.donahue

20 Jul, 2015 09:04 PM

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. Support Staff 1 Posted by Feodor Fitsner on 20 Jul, 2015 11:09 PM

    Feodor Fitsner's Avatar

    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. 2 Posted by brian.donahue on 21 Jul, 2015 12:48 AM

    brian.donahue's Avatar

    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. Support Staff 3 Posted by Feodor Fitsner on 21 Jul, 2015 01:01 AM

    Feodor Fitsner's Avatar

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

  4. 4 Posted by brian.donahue on 21 Jul, 2015 01:07 AM

    brian.donahue's Avatar

    Yes, just verified this! Thanks!

  5. 5 Posted by brian.donahue on 21 Jul, 2015 01:19 AM

    brian.donahue's Avatar

    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. Support Staff 6 Posted by Feodor Fitsner on 21 Jul, 2015 01:22 AM

    Feodor Fitsner's Avatar

    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

Recent Discussions

20 Mar, 2019 11:26 PM
20 Mar, 2019 09:03 PM
20 Mar, 2019 08:55 PM
20 Mar, 2019 08:48 PM
20 Mar, 2019 08:02 PM