So, I have established Aegir to take care of my sites workflow.
Now I made changes to my development site, used git to load the commit to development site. How do I import the latest commits to Staging or Production ?
With the Hosting site Git module you can create a git pull task from the hostmaster frontend.
This module extends Aegir with the option to do a 'git pull' in a site directory.
From stage to production (in case every custom module, feature, theme have it's own repository)
We assume that on the production server we must have the absolute control over the code.
It's a painful but reliable workflow.
The assumed architecture model is problematic. You shouldn't have an "Aegir hub" server separately from Dev, Staging and Prod servers; you should simply have Aegir Dev, Aegir Staging and Aegir Prod servers.
To move sites from one Aegir environment to another, you would remotely import them.
For details on this topic, see Aegir DevOps: Deployment Workflows for Drupal Sites.
For updating code on whichever server, you would navigate to Platforms » Add Platform. From there, you would choose a deployment strategy involving Git. See the Deployment Strategies documentation page for more information.
git pull
and again go to prod and dogit pull
? that's not how Aegir works, it creates installation profile