Best Practice Workflow for Git and Drupal ?

sandshakimi
sandshakimi used Ask the Experts™
on
Ok, I'm putting together a plan to implement Git for the first time in our environment for Drupal development.

We will have a Dev, Staging and Prod. on separate physical boxes.

Can't use a public/commercial Git server, so we will have to stand up a Git server ourselves.

Attached is the initial draft of the network/workflow:

1) All coding done on dev (drupal.ourwebsite.com)
2) Pushed to Staging
3) Finally, pushed to Production


1) Am I on the right track?

2) Do content authors edit and create content directly in Production? Or does their edit have to go through Git version control?

3) Installing/activating modules part of the version control ? Or would we be installing/activating across all three boxes when a module is approved?
ii.JPG
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Aaron FeledyDrupal Developer and Consultant

Commented:
Database changes won't be included in the git workflow. Much of what Drupal does is in the database, so those changes will need to be manually applied on each system. This includes adding/editing content, enabling modules, changing settings, modifying menus, and just about anything that is done through the Drupal admin interface. Basically, yes, content should be managed on the production server. The only thing that will go through your git workflow will be actual code changes.

Author

Commented:
So in essence, the value of Git version control is for HTML, CSS, JavaScript and PHP edits that don't involve database/administrative transactions ?
Drupal Developer and Consultant
Commented:
Correct.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial