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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:42:49+00:00 2026-05-24T01:42:49+00:00

I’ve just moved from svn to github. Me and my team run local tests

  • 0

I’ve just moved from svn to github. Me and my team run local tests and we commit changes and test on a central dev server. Whenever we push changes to the repos I would like to automatically pull changes to any branches of my repos into folders on my dev server. This would enable me and my team to test and preview each others code using our central dev server.

Ideally, I could then map subdomains onto these different branch directories.
I.e. If the branch was called ‘refactor’ i might check it using
http://refactor.devserver.com

I guess this might involve a hook in my github configuration that triggers a script on the dev server? Perhaps i need to use a ci server like Hudson?

Edit : I can easily trigger a script to pull the master branch – what I need to do is pull any changed branches to separate root folders, so I’m able to test any branch easily through it’s own subdomain. (Or some similar way to deploy and test any changed branches automatically)

Many 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-05-24T01:42:50+00:00Added an answer on May 24, 2026 at 1:42 am

    Here is part of the answer to my own question…

    I wanted the team to be able to fork the code and instantly be able to show it on a url like this : http://branch-name.devserver.com

    I set up vhost directives in apache conf to map sub domains to folders :

    <VirtualHost *:80>
            ServerName www.devserver.com
            ServerAlias *.devserver.com
            VirtualDocumentRoot /var/www/devserver/%1/
    </VirtualHost>
    

    I branch the code in github or on my local machine.
    Then run these commands on the dev server

    cd /var/www/devserver
    git clone git@github.com:/user-name/repos-name
    

    Move the cloned repos folder to a folder named the branch name so it becomes the root folder of the subdomain virtual host.

    mv repos-name new-branch
    

    Then switch the repos from master to the new branch

    cd /var/www/devserver/new-branch
    git checkout new-branch
    

    It’s now available on http://new-branch.devserver.com

    Then after I’ve pushed changes to the branch on github – I pull them on the dev server

    cd /var/www/devserver/new-branch
    git pull
    

    Now – if I want the pull to happen automatically I could setup a CI server to listen for a git hub hook which would trigger a pull in each branches folder. Looks like Hudson could do this.


    I’d hoped to find a smarter way to do this :

    1. Without cloning the repos many times
    2. With a single command that updates all branches efficiently or a hook that lets me pull to only the branch that was updated
    3. With a decent folder structure for each branch – so I could test any branch on a specific url without having to mess about with http config every time I branch the code
    4. possibly automatically creating a root folder for new branches so that they would magically appear on the dev server

    Any further thoughts welcome…

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from
I've got a string that has curly quotes in it. I'd like to replace
I want use html5's new tag to play a wav file (currently only supported
I have a JSP page retrieving data and when single or double quotes are
I'm looking for suggestions for debugging... If you view this site in Firefox or

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.