Thanks to ebzao, I'm back on the internets. :-)
To use ikiwiki with a remote host, just do the following:
put
web.git
on the server;put the following in
web.git/.git/hooks/post-receive
and make it executable (it looks like settingGIT_DIR
is mandatory to have run successfully whenpush
ing, although locally or over throughssh
, everything seems fine without it...):export GIT_DIR=~/web.git/.git cd $GIT_DIR/.. git checkout -f # Update this repository ikiwiki --setup ikiwiki.setup # Update the HTML pages echo 'HTML update: done!' # Notify the 'push'-er
git-clone
on the local host;edit/patch/...
git-push
And now the site gets automatically updated some seconds after a push
.
(Note to self: a code block inside a list needs to be indented twice.)