Let ikiwiki make use of git for revision control

Posted on March 31, 2010. Filed under: admin, blogging, Debian, git, HowTo, series of posts, sys admin, wiki | Tags: , , , , , , , , |

And then, to finish this little series on how to set up a distributed ikiwiki bliki (with the web frontend configured to the mobile computer), let’s make the ikiwiki make use of git for actual revision control:

We start with an ikiwiki.setup edit, the usual way, i.e. I show you the changes I applied by diffing the resulting ikiwiki.setup file against the the untouched system-wide default one afterwards:

$ emacs -nw ~/.iki-test/ikiwiki.setup
$ diff ikiwiki.setup  /usr/share/doc/ikiwiki/html/ikiwiki.setup
14,15c14,15
<       srcdir => "/home/dagobart/.iki-test/bliki/s",
<       destdir => "/home/dagobart/public_html/bliki",
---
>       srcdir => "/path/to/source",
>       destdir => "/var/www/wiki",
17,18c17,18
<       url => "http://localhost/~dagobart/bliki",
<       cgiurl => "http://localhost/~dagobart/cgi-bin/ikiwiki.cgi",
---
>       url => "http://example.org/wiki",
>       cgiurl => "http://example.org/wiki/ikiwiki.cgi",
30c30
<       rcs => "git",
---
>       #rcs => "git",
63,69c63,68
<               {
<                       # The cgi wrapper.
<                       cgi => 1,
< #                     wrapper => "/var/www/wiki/ikiwiki.cgi",
<                       wrapper => "/home/dagobart/public_html/cgi-bin/ikiwiki.cgi",
<                       wrappermode => "06755",
<               },
---
>               #{
>               #       # The cgi wrapper.
>               #       cgi => 1,
>               #       wrapper => "/var/www/wiki/ikiwiki.cgi",
>               #       wrappermode => "06755",
>               #},
81,89c80,87
<               {
<                       # The git post-update wrapper.
<                       # Note that this will overwrite any existing
<                       # post-update hook script, which may not be
<                       # what you want.
< #                     wrapper => "/git/wiki.git/hooks/post-update",
<                       wrapper => "/home/dagobart/.iki-test/bliki/s/.git/hooks/post-update",
<                       wrappermode => "06755",
<               },
---
>               #{
>               #       # The git post-update wrapper.
>               #       # Note that this will overwrite any existing
>               #       # post-update hook script, which may not be
>               #       # what you want.
>               #       wrapper => "/git/wiki.git/hooks/post-update",
>               #       wrappermode => "06755",
>               #},

And that’s already is it. Now, let’s finish it by telling ikiwiki to act upon its setup file again and return home:

$ cd ~/.iki-test/ && ikiwiki -setup ikiwiki.setup -getctime && cd

Done.

Advertisement

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

Follow

Get every new post delivered to your Inbox.