public
Fork of jnewland/git-wiki
Description: A wiki engine that uses a Git repository as its data store.
Homepage: http://atonie.org/2008/02/git-wiki
Clone URL: git://github.com/bmizerany/git-wiki.git
jnewland (author)
Wed May 14 19:17:40 -0700 2008
commit  1786144a30eab355df675d39123b1e5eda41a820
tree    2aac854c34a5f5fc0043763dc3719e1698055e55
parent  5b90bba39a8c4992b62fab7e6622319f6f113170
name age message
file .gitignore Wed May 14 19:17:40 -0700 2008 http auth [jnewland]
file .gitmodules Fri Mar 28 12:15:48 -0700 2008 properly vendored haml and sinatra [sr]
file LICENSE Wed Feb 27 09:35:08 -0800 2008 Now has a proper license (WTFPL) [sr]
file README.markdown Sun May 04 04:33:29 -0700 2008 Fix markdown (looks like one of BlueCloth or Ma... [sr]
file config.yml.sample Wed May 14 19:17:40 -0700 2008 http auth [jnewland]
file git-wiki.rb Wed May 14 19:17:40 -0700 2008 http auth [jnewland]
directory public/ Fri Mar 28 06:22:39 -0700 2008 Bind ctrl+h to homepage and ctrl+l to page list... [sr]
file sinatra_http_auth.rb Wed May 14 19:17:40 -0700 2008 http auth [jnewland]
directory vendor/ Sun May 04 03:59:06 -0700 2008 update sinatra [sr]
README.markdown

git-wiki

git-wiki is a wiki that relies on git to keep pages' history and Sinatra to serve them. See git-wiki's homepage for more informations.

git-wiki relies on the fellowing gems:

  • git (the gem, as in gem install git)
  • BlueCloth
  • rubypants

Sinatra and HAML are vendored as git submodules. To get them, run the fellowing commands :

% cd git-wiki
% git submodule init
% git submodule update
# this step is needed because sinatra itself use git submodule
% cd vendor/sinatra
% git submodule init
% git submodule update

Note that git-wiki is released under the terms of the WTPL so really, you can do what the fuck you want with it.

Tip: run git-wiki as a daemon

  1. Install the gem daemons.

    % sudo gem install daemons

  2. Create a new service (don't forget to modify the path to git-wiki)

% sudo cat > /etc/init.d/git-wiki <<EOF
#!/usr/bin/env ruby
require 'rubygems'
require 'daemons'
Daemons.run('/home/simon/src/git-wiki/git-wiki.rb',
     :dir_mode   => :system,
     :log_output => true,
     :mode       => :exec
)
EOF
  1. Install it as a boot service. On Ubuntu, run

    % sudo /usr/sbin/update-rc.d git-wiki defaults