Results 1 to 2 of 2

Thread: Automatically keep htdocs folder in sync with SVN repository?

  1. #1
    Join Date
    Jul 2008
    Location
    Netherlands
    Posts
    1,140

    Default Automatically keep htdocs folder in sync with SVN repository?

    I've setup both a http server and svn server and have a SVN project residing in the "/srv/svn/kdrepos/THOR/" directory.
    I would like this project to automatically do a checkout into the /srv/www/htdocs/ on update/commit.

    Is this in any way possiblely? Some sites (xp-dev) for example offer an option to have a repository automatically 'added' to a webserver. Does anyone know how is done?

    I'd xp-dev if it wasn't for the fact that I also need full access rights on the machine
    Special effects <- KDE 4.2 Showing off
    More KDE -> PINK KDE

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Automatically keep htdocs folder in sync with SVN repository?

    I believe SVN offers a post-commit hook which allows you to do run arbitrary scripts, including a remote command to do a checkout.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •