Solved

GitHub Drupal Repository Best Practice?

Posted on 2015-01-12
1
171 Views
Last Modified: 2015-02-03
Some questions about best practice for maintaining a Web application's code in a Git repo*:

* This would be in a private repo.

1) Do I include the settings.php file (that typically would have the db connection string) ?
2) Do I include media assets (PDFs, images, office files, audo/vidoe files?)
3) Would the main branch typically represent the codebase that's on Production, or should I have a seperate repo for Dev, Staging, and Prod?
4) When I deploy from GitHub to Dev, Staging, or Prod, do I run the Git commands from the respective server? (if yes, that would suggest I have to install Git on the server(s). Can I choose between command line versus GUI to run Git commands?
0
Comment
Question by:sandshakimi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 29

Accepted Solution

by:
fibo earned 500 total points
ID: 40546404
1 - Since it is a private repo, including settings.php at this stage seems a good idea. The alternative would be to save it in some other safe and secure place.
2 - Anything is possible. Personally I keep all files except videos (mp4 etc), but anything is possible here. If it is a private repo, I would guess that there are other better suited solution to backuping files that way

I am waiting to read the answers you'll get for items 3 and 4
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

726 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