Solved

Best Practice Workflow for Git and Drupal ?

Posted on 2013-12-13
3
518 Views
Last Modified: 2014-01-13
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
0
Comment
Question by:sandshakimi
  • 2
3 Comments
 
LVL 13

Expert Comment

by:Arrow_1
ID: 39718190
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.
0
 

Author Comment

by:sandshakimi
ID: 39724293
So in essence, the value of Git version control is for HTML, CSS, JavaScript and PHP edits that don't involve database/administrative transactions ?
0
 
LVL 13

Accepted Solution

by:
Arrow_1 earned 500 total points
ID: 39724925
Correct.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Git Line-Endings 2 202
Practice for maintaining multiple Git feature branches simultaneously 4 237
Display the Name of Current Git Branch 2 132
Git Repository Strategy 5 86
This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
Article by: gr8gonzo
Git can be a complicated version control system for beginners, but it definitely is one of the best ones out there. Since this article assumes that you're starting at square one, it will skip over things that Git -can- do and will focus on the typic…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question