svn - subversion for online projects -


i've started using subversion keep track - , able reverse - of our website changes related development , maintenance. loving feeling of security provides!

i know if there tool / way able automate synchronisation between "live" website , subversion repository. great able both commit bug patch repository , live version (right manually upload via ftp corrected file, commit subversion repository).

i'm sure must exist somewhere, under name ? set need?

thank feedback, a.

you can create post-commit hook export repository @ latest revision webserver directory:

#!/bin/sh  # delete old site rm -r /var/www/website  # export repository svn export --force file:///var/svn/website /var/www/website  # make sure apache owns website chown -r www-data:www-data /var/www/website  

(credits this forum thread)

save in file called post-commit, in hooks directory of repository, , make executable.

if repository , website not on same server, you'll want export in temporary directory, , push via ftp or scp

edit: found perl module job: svn::notify::mirror


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -