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.
Received on 2008-08-19 19:59:44 CEST