Extract Kamal::Commander::Specifics to deal with host and role setup and ensure that primary hosts and roles always come first. This means that in a rolling deploy we deploy to the primary ones first.
This will be important when we remove the healthcheck step as we want to confirm the primary host can be deployed to before completing a deployment for other roles.
By setting the hosts and roles all together in one place we can sort the primary ones to the front without creating infinite loops.
Extract Kamal::Commander::Specifics to deal with host and role setup and ensure that primary hosts and roles always come first. This means that in a rolling deploy we deploy to the primary ones first.
This will be important when we remove the healthcheck step as we want to confirm the primary host can be deployed to before completing a deployment for other roles.
By setting the hosts and roles all together in one place we can sort the primary ones to the front without creating infinite loops.