[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Want to set up SVN for a web app

From: Neil Trodden <neil.trodden_at_gmail.com>
Date: Wed, 1 Apr 2009 18:50:44 +0100

I use it for web applications (both asp.net and some older legacy php sites)
First of all, you'll have a check out of the website on your local machine
for editing. I also run a webserver (and database) locally which has it's
webroot pointed at my local working copy.

I edit, develop, test etc locally and I tend to commit at least once a day,
and every time I reach a milestone in development - ie a new feature works.
Once I am happy everything *seems* ok, I commit my changes to the trunk and
then tag that with "staging" so I have a record of the exact version of all
files that I am about to deploy. I then use the svn export command to export
a copy of the php websites without any of the hidden .svn folders included.
This is then zipped and uploaded to the server. That whole tag, export, zip
and upload could be scripted I suppose.

As for asp.net, I do the same but rather than export, I use the publish tool
to build and deploy the site to a folder - again ready for upload.

If you think that revision control is not worth it for web development then
you are 100% *wrong* but you will struggle if you insist on this
local/remote server development hybrid.

Neil Trodden
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-02 14:16:28 CEST

This is an archived mail posted to the Subversion Users mailing list.