On Tue, Aug 19, 2008 at 11:25 AM, Robert Dailey <rcdailey_at_gmail.com> wrote:
> Hi,
>
> I currently have a linux server that hosts two things. A web server (apache
> & mod_python) and a subversion server (through xinetd and svnserve). I had a
> cute idea, but I'm not sure how to go about implementing it. Basically, I
> want to develop my web server remotely. I want my entire document root to be
> in a repository in my subversion server. So, when I do a checkout remotely,
> I have access to all the files on my web server and can start developing
> right away. The tricky part, however, is forcing my web server to recognize
> those changes. I was thinking that the document root on my server would be
> nothing more than simply a working copy checkout. I figured that somehow I
> could have a server-side post commit hook that forces an svn update to be
> performed on the document root's working copy, which would in turn
> immediately force my changes to be reflected to the web server. I'm pretty
> inexperienced with svn hooks, so if someone could show me how to implement
> this I would appreciate it. I tried using WinSCP for this, and while it does
> allow me to remotely edit files, it's a bit frustrating and it also doesn't
> keep a history of file changes. One other thing my subversion repository for
> my document root would need to do is ensure proper line endings. If I create
> new files on windows, I want them to have linux line endings when they're
> committed, but ONLY for that specific directory & sub directories in the
> repository. I'm not sure if a post-commit hook to convert line endings can
> be created specifically for only a folder in a subversion repository.
>
> Thanks for any help.
>
I found this to get me started:
http://subversion.tigris.org/faq.html#website-auto-update
I'll post back if I have problems. Sorry for the trouble.
Received on 2008-08-19 21:39:26 CEST