Skip to content

How do I have a live site and a dev site in a single repo #23962

Answered by jaytelford
jaytelford asked this question in General
Discussion options

You must be logged in to vote

Just a reply to my original question to say that I have actually worked out how to do this on my own by using the gh-pages branch.

Currently this is my setup now:

dev

This is my current working branch.  Other branches like comingsoon may be checkout from this branch, allowing me to work on small portions of problematic code or test new layouts, without effecting the rest of the content housed here.  Those branches are then merged back into the dev branch once issues have been closed.

gh-pages

This is now my testing branch.  gh-pages displays the very latest beta build of the site.  pages/links/content might be broken and not display properly.  This is where the public can test out the lat…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants