Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

GitHub Drupal Repository Best Practice?

Posted on 2015-01-12
1
Medium Priority
?
199 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
1 Comment
 
LVL 29

Accepted Solution

by:
fibo earned 1500 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

963 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