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

RE: Re: Web Hosting using subversion

From: Bicking, David (HHoldings, IT) <David.Bicking_at_thehartford.com>
Date: 2007-10-12 15:01:11 CEST

> -----Original Message-----
> From: Nicolai Scheer [mailto:scope@planetavent.de]
>
> Hi!
>
> Nikhil Rasiwasia schrieb:
> > We are a small academic group and have our small website.
> It usually
> > happens that we need to update that from time to time and multiple
> > people have to do so. I installed subversion to tackle this
> problem,
> > but I am confused as to how to host that website using subversion.
> >
> > The real question being, the copy of the website that is actually
> > hosted, does it have to be a local copy somewhere or I can direclty
> > link it to the SVN repository so that if anyone commits the
> changes to
> > the repository it is reflected on to the website. In the other case
> > whats the solution to have real time update feedback? using a
> > post-commit hook to update the hosted copy?
>
> As Ryan already stated, just use a working copy. When doing
> so you should make sure, that data from the hidden .svn
> folders can not be accessed from outside.
> Why? The .svn folders contain a local pristine copy of the
> files with the file extension '.svn-base'. So if you, for
> example, are serving php scripts, one might be able to
> download the source files, because the webserver does not
> interpret them.
>
> bye,
>
> Nico

In fact, this is one reason I would use the following workflow for this
project:

1. checkout code to a local workspace known by a local web server
2. make whatever changes are necessary.
3. test until blue in the face.
4. commit changes.
5. backup the live site. Clear the live site.
6. Export the workspace to the live site.
7. Smoke test the live site.

Wash, rinse, repeat as necessary. If you're feeling lucky, and don't
believe in Murphy's law, you could set up your live site as a "shadow
folder". Write a post-commit script that exports the repository changes
to the website automatically on commit, cross your fingers.

--
David
*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 12 15:01:38 2007

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.