dd
[ikiwiki.git] / doc / post-commit.mdwn
1 Here's an example of how to run ikiwiki in a [[Subversion]] post-commit
2 hook to automatically update a wiki as commits come in:
3
4         wiki_src=/path/to/checkout
5         wiki_dest=/path/to/web/server
6         svn up -q $wiki_src
7         ikiwiki $wiki_src $wiki_dest --wikiname=MyWiki
8
9 This assumes that permissions allow anyone who commits to svn up the
10 wiki_src directory and write to wiki_dest. If they don't, you'll need a
11 suid wrapper to run the above as a user who can write to both.