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

Re: Web projects (not the VS stuff) and correct post-commit

From: Brian Mathis <bmathis_at_directedge.com>
Date: 2004-09-22 18:53:48 CEST

Michiel van Oosterhout wrote:
> Hello,
>
> I'm a newbie on subversion. I want to store webprojects in repositories on a
> win2k computer which runs apache with virtual hosts for each website. I
> develop on another machine in the network. I am confused how to do this,
> because the repository is in a special files (Berkeley DB), so I can't have
> that as documentroot. Check out to local, edit, commit. Then a hook on
> post-commit to update the repository to the documentroot? That would mean
> that for every minor edit I should commit to see the result on the server.
> That would be a bit much. Any tips, or FAQS on this? I am not currently
> using VS, I use dreamweaver.
>
> Thanks
> /M

A typical setup that you would use for something like this would be to
have 2 completely different environments, production and development.

The development area would have it's own web server and working copy on
it. The dev web server would allow the development directory to be
accessable via the web. You check out your working copy from the
repository, then make all your changes to those files, but don't commit
each little change. Then, when you're satisfied with all the changes
you've made, you commit them to the repos. After that commit, you
update the version that's on the production server. Sometimes those
changes will be small (spelling errors maybe), and other times big.

Svn is a tool that gives you many more abilities, but it doesn't come
for free. You'll need to put forth a little more effort to use it.
After you do it a few times, you won't really notice it though. In the
end, it's well worth it.

-- 
Brian Mathis
http://directedge.com/b/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 22 18:54:33 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.