Hello there,
i'm interested in some good pattern to version control my Drupal sites. I am not saying that i don't know how to do it, i am actually asking if anyone knows a well-known structured approach to this question.
To complete my request i'll try explain what i am actually doing, and why i consider this approach inappropriate.
When approaching new sites, you usually have to deal with
- A theme (or subtheme) developement
- Zero, one or more custom modules to handle your needs. When talking about custom modules, in this context, i mean private project modules that are not releasable/released as contrib
So, what steps?
- Download the latest drupal release
- Download and enable required modules
- Do development stuff, like said
(mostly done using drush).
While developing themes and modules, i use to keep them in a GIT repo, so i create a new one adding
- root/sites/all/themes/mytheme directory
- root/sites/all/modules/{custom_modules}
or, in some case, i just add the whole sites/all directory. Anyway, i keep out of my repo
drupal core and drupal contrib modules.
That said, i have
1. A developement server
2. A staging/test server (optional - depends on project complexity)