aboutsummaryrefslogtreecommitdiff
path: root/doc/post-commit.mdwn
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-10 08:19:53 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-10 08:19:53 +0000
commit65e3686ead9e443584e2c727eec4ccf32bfad47e (patch)
tree98d2127dbdc6bfb6cf121b81fe9bc06193a1124f /doc/post-commit.mdwn
parent10b2ae520d269b051fccc1511cd1b3c162e65117 (diff)
downloadikiwiki-65e3686ead9e443584e2c727eec4ccf32bfad47e.tar
ikiwiki-65e3686ead9e443584e2c727eec4ccf32bfad47e.tar.gz
dd
Diffstat (limited to 'doc/post-commit.mdwn')
-rw-r--r--doc/post-commit.mdwn11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/post-commit.mdwn b/doc/post-commit.mdwn
new file mode 100644
index 000000000..6635d3bbd
--- /dev/null
+++ b/doc/post-commit.mdwn
@@ -0,0 +1,11 @@
+Here's an example of how to run ikiwiki in a [[Subversion]] post-commit
+hook to automatically update a wiki as commits come in:
+
+ wiki_src=/path/to/checkout
+ wiki_dest=/path/to/web/server
+ svn up -q $wiki_src
+ ikiwiki $wiki_src $wiki_dest --wikiname=MyWiki
+
+This assumes that permissions allow anyone who commits to svn up the
+wiki_src directory and write to wiki_dest. If they don't, you'll need a
+suid wrapper to run the above as a user who can write to both.