Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 21st November 2011, 17:40
alleks alleks is offline
Senior Member
Join Date: Nov 2010
Posts: 157
Thanks: 9
Thanked 9 Times in 9 Posts
Default Best way of version control of a live site

Sorry if I posted in the wrong place but where else?

Can any1 help me with this question I made some time ago:

I want to test on one of my servers the version control of a live website and implement it the best way possible.

That one of the servers is running on Debian Lenny with Apache2 and wanting to use Mercurial (1.9.3 installed) as version software.

I have followed this tutorial (http://www.isnull.com.ar/2010/03/how...debian-or.html) till a certain point where these doubts showed up: How can I do version control of a live website, thinking of implementing multiple users support in the future. Explain:

I have my live website which I want to add the feature of the version control and it to be the master branch with it's user and password for commits (in the beginning).
From my local computer where I have the development area, I want to be able to commit to the master branch through whatever protocol (http, ssh, ...).
I also would like to know which method would be the most efficient to have the multiple user support and than each user to push to a stable repository and when the push is accepted the administrator will push to live site / master branch. Explication: I have the master branch, a stable clone of the master and each user will have his clone/s of the stable repository and finally each user will push to the stable repo where from there if accepted will go to the master branch.
It does occur to me another question, won't be there conflict problems when a user pushes a file/s different from what other user pushed 1 minute ago? Of course there can be the task separation and each to do certain things but what if not, what if X commits submit.php and Y also commits submit.php 1 minute before? I am asking this because I am sure that I will encounter this problem with the friend I work with, so what any ideas?

Or it's that I didn't fully experimented CVS and neither fully understood it? Even though I think other have encounter the same problems as I but I didn't find no where these questions asked.

Thank you, Alex

PS: Mercurial is not a must, It's just I used that one mostly but I am open to any other software that will help me

I have the following structure: Production, Stable , Development and Testing (for testing purposes only) and of course Production is the master branch and each other is a copy of another (Production -> Stable -> Development -> Testing or Production <- Stable <- Development <- Testing) and all of them are workable inclusive the master branch
By that I mean that when everything is ok and goes great I push to Production (Development -> Stable (Stable copy of production) -> Production) and what mainly I am looking for is for a way that automatically when new changes are submitted to Production it updates the LIVE Site through ftp or whatever type of transfer protocol.

Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Version 1.3 of the ISPConfig 3 Manual is finally available! falko General 44 2nd December 2011 13:04
Centos5.4/ISPConfig 3--Virtual site not working MichaelCaditz Installation/Configuration 25 25th March 2011 12:37
ISP Config Server Apache admins Installation/Configuration 3 14th October 2009 11:13
Broken php5-mysql dclardy Installation/Configuration 8 9th October 2009 10:49
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 20:51

All times are GMT +2. The time now is 20:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.