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

  • Home
  • SEARCH
  • 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 8894479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:30:26+00:00 2026-06-14T23:30:26+00:00

I have 2 sites (staging and live). I want to have a central git

  • 0

I have 2 sites (staging and live). I want to have a central git repo where we push to and deploy both sites from.

I also need to capture changes that happen to the code on both the staging and live sites (plugin installation, themes, extensions, etc). I need ideas for the best structure please.

Obviously, our team will need to keep working copies of the central repo locally. Thanks!

  • 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-14T23:30:28+00:00Added an answer on June 14, 2026 at 11:30 pm

    You can use Capistrano with multistage deployments to handle what you want. The repo being deployed can reside pretty much anywhere that is accessible for pulling by the app server environments.

    For example, on a recent project we used a private GitHub repo as the deploying repository. We set up SSH keys on the app server for authenticating with GitHub, and can deploy to either staging or production depending on the Capistrano command we issue from our local workstations. Our local Capistrano instance will remotely (via SSH) tell the app server to checkout and fetch latest from the appropriate branch on Github to its own local repo, copy the latest code to a new directory, and then go through a checklist of tasks (config modifications, asset compilation, database migrations, etc). Upon a successful deploy, Capistrano tells the server to switch over to the latest code. Any hiccups, and it simply rolls back the deploy.

    The command to deploy is as simple as: cap deploy or cap production deploy

    You can read up more about it here, and about multistage setups here.

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

Sidebar

Related Questions

I have 3 sites live, staging and development, devel site have copy of all
I have several sites that I want to link back to the main site
I have two sites with different SITE_IDs, but I want to have only one
We have a series of web services that live in different environments (dev/qa/staging/production) that
Multiple sites have buttons where you can tweet, digg, etc. On this page you'll
I have several sites where users can send me email through an html form
I have several sites in different domains: example.com , example.org , mail.example.com and passport.example.org
I have two sites that are app1 and app2. If a user requests a
I have 2 sites that are the same, but different databases and data. One
I have two sites one is written in asp.net webforms and the other one

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.