diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-11 00:40:34 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-11 00:40:34 +0000 |
commit | 2aaab7db29f154816d6338a1329b42090209d966 (patch) | |
tree | 598a7169b42a581616010f9f683a5481fb910c60 /doc/post-commit.mdwn | |
parent | b2d0a940d8f975199bdb3f7e1590cf303eb0be1c (diff) | |
download | ikiwiki-2aaab7db29f154816d6338a1329b42090209d966.tar ikiwiki-2aaab7db29f154816d6338a1329b42090209d966.tar.gz |
up
Diffstat (limited to 'doc/post-commit.mdwn')
-rw-r--r-- | doc/post-commit.mdwn | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/post-commit.mdwn b/doc/post-commit.mdwn index 6e768ce24..8dff290fd 100644 --- a/doc/post-commit.mdwn +++ b/doc/post-commit.mdwn @@ -1,23 +1,23 @@ The best way to run ikiwiki in a [[Subversion]] post-commit hook is using -a wrapper, which can be generated using `ikiwiki --gen-wrapper`. +a wrapper, which can be generated using `ikiwiki --wrapper`. First, set up the subversion checkout that ikiwiki will update and compile into your wiki at each subversion commit. Run ikiwiki a few times by hand -to get a feel for it. Now, generate the wrapper by adding "--gen-wrapper" +to get a feel for it. Now, generate the wrapper by adding "--wrapper" to whatever command line you've been using to run ikiwiki. For example: ~/wiki-checkout> ikiwiki . ~/public_html/wiki - ~/wiki-checkout> ikiwiki . ~/public_html/wiki --gen-wrapper + ~/wiki-checkout> ikiwiki . ~/public_html/wiki --wrapper successfully generated ikiwiki-wrap The generated wrapper is a C program that is designed to safely be made suid if necessary. It's hardcoded to run ikiwiki with the settings -specified when you ran --gen-wrapper, and can only be used to update and +specified when you ran --wrapper, and can only be used to update and compile that one checkout into the specified html directory. Now, put the wrapper somewhere convenient, and create a post-commit hook script in your subversion repository for the wiki. All the post-commit -hook has to do is run ikiwiki-wrap (with no parameters). +hook has to do is run the wrapper (with no parameters). Depending on your Subversion setup, the post-commit hook might end up getting called by users who have write access to subversion, but not to |