Here's the situation: there are 9 sites, they all share a similar codebase, but there are differences:
- Type A: 2 of them could be considered "social" sites (events, news, profiles, login)
- Type B: 3 of them are your regular sites (events module, news, etc)
- Type C: 4 of them are small "brochure" type sites (just pages and a contact form)
Now I was thinking about an efficient way to deploy those sites.
If I make a change to one of those sites, sometimes it would apply to a single site only, sometimes to both type A sites. Some changes would affect all type A and B sites and so on.
I am looking into getting this to work with git. How can I efficiently deploy changes across multiple folders?
I tried creating branches for A, B, C but I have a gut feeling that's not really the solution. For example, if file xxx.txt exists in branch A, and I switch over to B, it's still there.
I think I should determine which files are shared and which ones are not and then find a way to mix and match it all together.
all-sites
|-- a
|-- b
|-- c
`-- static