Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Been using Aegir Git for site platforms and it works great. I'd like to start using it for sites, but I can't seem to find any docs on what the folder structure for a site git repo should look like.
Should it follow Aegirs?
- files
- libraries
- modules
- themes
etc?
Thanks,
Chris
Comments
Comment #2
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedYes that's correct. But I prefer to keep the files dir out of Git...
Example .gitignore file
One trick to 'safely' store some $conf settings in Git is to include a file called versioned.settings.php from the local.settings.php
A new 'Git' page under https://github.com/aegir-project/documentation/tree/3.x/docs/usage/advanced might be nice for this info.
Comment #3
c_archer CreditAttribution: c_archer as a volunteer and commentedThanks for this :)
Do you want me to write some up on Drupal.org as well?
Comment #4
colan@c_archer: All of the official documentation is available at http://docs.aegirproject.org/en/3.x/, which gets automatically updated from GitHub, so we should any new documentation over there. Please use the Edit on GitHub link to submit a merge request, and then we can add your contribution.
Thanks for doing this!
Comment #5
c_archer CreditAttribution: c_archer as a volunteer and commentedHi @colan,
This has now been created at: https://github.com/aegir-project/documentation/compare/3.x...chrisarcher...
Thanks,
Chris
Comment #6
colanSee also: #2879243: Suppressing Creation of a Site 'local.settings.php' File.
Looks like we have several options here.
Comment #7
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedAnyone in favour of auto-including versioned.settings.php just like the local.settings.php? Then there's no need to manually include it, can local.settings.php be used for environment specific overrides, and versioned.settings.php for project specific settings.
Comment #8
colanI do think it makes sense to include both: one controlled by Aegir, and the other controlled by Git.