Subversion in a Web programming shop

wallsfd949

Golden Member
Apr 14, 2003
1,002
0
0
I moonlight as a System Administrator for a small web programming shop (Linux/Apache/MySQL/PHP). They needed a way to track changes and work three or four on the same project at one time. I immediately thought of Subversion and started to read up on it. We've been using it for the past 3 weeks and here is how we are doing it:

Since most projects are worked by one developer, I've setup dev sites for each project. That dev site is a Working Copy of the project in the repos using svn co blah. The developer can work out of the dev dir (mounted on his G5) until he's happy with his changes and then commits them. Once they are through with the project, the HEAD is exported to a publicly viewable live site.

Since they are PHP programmers and are not extremely cmd line friendly, esvn is installed on the server and ssh tunnel to their OS X display. This has proven to be a must with developers who like to rename files and directories without thinking about the fact they are working in a versioned file system and they must tell svn what they are doing.

I'd be interested in knowing if there are any others doing something similar or using Subversion in a web design/programming shop.

 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
We use tortoiseSVN at work on our windows boxes to sync up and commit and lock. Although I only really use the console (I still like programing in vim the best, although i'm slowly moving to bluefish), so I'm not too up on all the graphical tools. Its kinda of funny that php programmers are not command line friendly sense php makes a decent shell scripting language. Sounds like the are dreamweaver lackeys and not programmers :)

Anyways, it sounds like your setup is fine. The most important thing is just to make sure you keep the repository updated. 90% of the time its just an extra step for them, but one day, someone will make a dumb change, or loose something, or try to work on someone else's project and the versoning will be the lifesaver.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
I do web development where I work. Most of it is in java and these files are managed by the ide's integrated repository (VAJ :() but the jsps are sitting out on the hard drive. My setup with the version control for these jsps is less than optimal (I end up working with another developer to manually merge my work). I use svn to track my local changes on my own. The repository is on my disk, seperate from the checked out files. It's not that great for pulling the changes made by other developers back to my environment (and of course it wasn't designed for this) but it's fantastic for tracking my local changes, helping me figure out what to merge and as a backup in case I copy stuff over my work.