After reading the following posts, I'm still not sure on how to set up a Drupal 8 site with Git.
- What are all the directories for in the new Drupal 8 structure?
- https://drupal.stackexchange.com/questions/126660/how-do-the-seasoned-oo-php-people-go-about-setting-up-a-professional-development?rq=1
- Cloning site and $config_directories
- https://www.drupal.org/node/2360331 (especially #19 and #20)
Apparently, the contributed/ custom modules and themes folders have moved from /sites/all/modules and /sites/all/themes to /modules and /themes, in Drupal 8. When I copy the modules to /sites/all/modules Drupal 8 does recognize them, but when I add modules via UI, they get downloaded to /modules.
Which folders should be committed in a Git repository? Is it generally bad practice to go for sites/all?
Formerly, we had this file and git structure.
/
↳ www.example.com
↳ sites
↳ all -> /repo/repo.git/all
↳ repo
↳ repo.git
↳ all
Now, I imagine it's more complex.
/
↳ www.example.com
↳ modules -> /repo/repo.git/modules
↳ themes -> /repo/repo.git/themes
↳ repo
↳ repo.git
↳ modules
↳ themes
What about sites/default/files/conf*?
I understand that this folder is being used for the configuration files.
Is it right that my local developmente environment and the staging/ production environments have their own folder?
Is the usage of configuration files necessary when we only tend to have one real, always up-to-date main database (production/live)?
Should the configuration be tracked and deployed with Git? Why?