Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8210161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:58:47+00:00 2026-06-07T09:58:47+00:00

Originally, I thought my problem was How to maintain branches in Apache’s DocumentRoots? but

  • 0

Originally, I thought my problem was How to maintain branches in Apache's DocumentRoots? but realized the right question actually is How to use Git to deploy stuff to web -server such as Apache?.

I feel I have understood now the DocumentRoot -problem, it would require Apache hacking that I want to avoid because much simpler solution using side-effects and putting the repo outside the deployment -dir but now a problem to understand git-fetch-hook and how to deploy stuff if the outside thing is a large dir, perhaps just cp besides and then mv — but there must be some better way of syncing the deployment -dir, thinking.

DocumentRoot -problem

DocumentRoots specify the dirs in httpd.conf for hostable material.
Now in such folder, I want ticgit -branches and feature -branches.
When I create branches in some DocumentRoot, I get master and the
other branch mixed up. $ git checkout --orphan feature-0.01 is not
empty but contains master -things. $ ti new ... creates a branch
that has stuff from master, apparrently some bug in Ticgit (it works
in small repos but creating ticgit -branch for larger repos like my
DocumentRoot results into havoc). So how do you maintain your braches in Apache’s DocumentRoot? Do you have your tickets there?
What about your feature -branches? Look I am puzzled by this, $ git
checkout feature-0.1
and now how does apache knows which files it
should host? Things in master or things in feature-0.1?

My updated understanding of the DocumentRoot -problem

Now the problem with latter is that the deployment is not meant to
work like this. I know SethRobertson’s guide instructs some ways to
use git for deployment. I think they are the best methods so far
instead of hacking the Apache with git -repo inside the deployment
-dir (commonly www).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:58:49+00:00Added an answer on June 7, 2026 at 9:58 am

    WRONG!

    Do not develop inside your deployment -dir (commonly www in Apache). Develop elsewhere and use side-effects and proper version-control good-rules outlined in SethRobertson’s guide here, particularly the rule about deployment branch for version 1.0 and tagging so you maintain a timeline how things develop over time. He states a do-not for the activity to mess development and deployment below, probably not good thing for your users also (they probably not wanting to see your editing of the website while browsing).

    SethRobertson’s guide states a DO-NOT for messing up deployment and development

    use git as a web deployment tool

    Yes it can be done in a sufficiently simple/non-critical environment
    with something like Abhijit Menon-Sen’s document on using git to
    manage a web site to help, though there are other examples. However,
    this does not give you atomic updates, synchronized db updates, or
    other accouterments of an industrial deployment system.

    So Using Git to manage a web site -tutorial here, example here and here — but notice his warning "however, this does not give you atomic updates, synchronized db--".

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: turns out the problem is more complicated than I originally thought. I was
I am attempting to do what I originally thought would be pretty simple. To
I think what I'm trying to do is more complex than I originally thought.
I thought I would rewrite this question (same iteration). The original was how to
Originally I had a design problem where I needed five subclasses of a superclass,
Originally posted on Server Fault , where it was suggested this question might better
I originally installed a recent version of wamp (php 5.3) but I need to
Firstly, this DB question could be a bit DB agnostic, but I am using
I originally thought Python was a pure pass-by-reference language. Coming from C/C++ I can't
Weird... Originally i thought that php was not correctly handling large file uploads (800mb-2gb)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.