![]() |
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: http://stackoverflow.com/questions/7...of-a-live-site Quote:
Quote:
Thanks, Alex |
I used SVN for this purpose some time ago on several servers and it worked quite well.
Quote:
I wont use CVS as its quite old and not that easy to use, better use SVN or Git. If you develop on windows systems, then take a look at tortoisesvn client. |
Thank you Till, that's very useful to know... but what about the synchronization problem?
|
You create e.g. 3 branches in SVN:
/yoursite/trunk /yoursite/testing /yoursite/stable All developers have access to trunk. The release managers have access to testing and stable. Changes from trunk were merged (applied) to testing and if they work you can merge them to stable. You can then export the revisions from testing and stable to the webservers with svn export command. To get a easy way to switch back to a old revision later in case that somethin does not work in stable, then you can create a tag for every released version, so its easy to get back to that version. /yoursite/tags/1.0 /yoursite/tags/1.1 /yoursite/tags/1.2 etc. |
So subversion (the one and only I was avoiding) seems to have the solution :), but my question is how would that work if people have to push changes from a remote place (another pc) and I don't have a Fix/Stable/Own public IP but a dynamic one? I wouldn't like to make branches on a production server and work with them there, there should be only the Live/Production branch. I hope you understand my question.
I do have another idea but I will have to test it first and then I will let you know, it involves a Shorcut/Copy/Remote folder called Production (like a shared folder over the network) of the live website and that will be a masterbranch and when merged changes to that folder they auto update because it's a "shared" folder copy of the webXX/web/. |
Quote:
If you want to get a version of the code live, then a script on the live server connects to the svn repository server and pulls a copy of the code to its local harddisk. Quote:
|
| All times are GMT +2. The time now is 15:20. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.