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 7764501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:55:41+00:00 2026-06-01T14:55:41+00:00

The structure I’m trying to setup is as follows: /public_html repository (live) what the

  • 0

The structure I’m trying to setup is as follows:

  • /public_html repository (“live”) what the users see, contains custom
    uploaded files (e.g. user gallery images, etc, these are ignored with .gitignore)

  • /stable repository containing the latest stable source for the project (minus the ignored files)

  • /public_html/dev development environment, where only myself and another developer will edit files in, test online directly from this folder.

Whenever any changes are made, they are done so in the /dev repository, and changes are pushed up to /stable which I would like to create a hook to automatically update the /public_html repository with the latest stable files.

Development area

As I understand git development is usually cloned and done in a local environment, but due to licensing restrictions on the software we use, and it requiring a very specific server setup, doing local development is not an option. We therefore need to have a central development area to test changes.

My questions are as follows:

  1. How could I achieve the above structure?
  2. What needs to be a base repository and what does not (as I understand push to a non-base repository can be troublesome.)
  3. Any improvements/suggestions?
  • 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-01T14:55:43+00:00Added an answer on June 1, 2026 at 2:55 pm

    /stable should be a bare repository.

    /public_html should not be a repository at all – instead, you should use git archive or similar in your hook to export files from the /stable repository into /public_html.

    Ideally, I’d suggest not putting your dev repository in /public_html – it’d be better off in a separate document root of its own, that way you don’t run into potential issues from path collisions etc.

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

Sidebar

Related Questions

Table structure: users: uid, name friendships: uid1, uid2 game_membership: gid, uid basically I'm trying
my structure is like this: master page aspx(web form) ascx(user control) I have a
Structure of the web: http://img130.imageshack.us/img130/8494/76031919.gif http://img130.imageshack.us/img130/8494/76031919.gif SAMembershipProvider.cs namespace User.Membership { public class SAMembershipProvider :
Site structure: / /products /products/design /products/photo /about I want to see parent menu item
Following structure: app.py /package __init__.py foo.py bar.py foo.py and bar.py contains both classes Foo
page structure- Page1 = aspx page with iframe(Page2) page2= aspx page contain user control
The structure of my program is as follows: Inside my main java class: for
I have the following structure: class User include Mongoid::Document end class Resource include Mongoid::Document
File structure is as follows: index.php settings/ |-manage_account.php templates/viriditio-v2/ |-index.tpl templates/virditio-v2/css |-style.css localhost/~braden/virditio/index.php shows
The structure is as follows: View Tab Bar Controller Navigation Controller View Controller Navigation

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.