This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 1786144a30eab355df675d39123b1e5eda41a820
tree 2aac854c34a5f5fc0043763dc3719e1698055e55
parent 5b90bba39a8c4992b62fab7e6622319f6f113170
tree 2aac854c34a5f5fc0043763dc3719e1698055e55
parent 5b90bba39a8c4992b62fab7e6622319f6f113170
git-wiki /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed May 14 19:17:40 -0700 2008 | [jnewland] |
| |
.gitmodules | Fri Mar 28 12:15:48 -0700 2008 | [sr] |
| |
LICENSE | Wed Feb 27 09:35:08 -0800 2008 | [sr] |
| |
README.markdown | Sun May 04 04:33:29 -0700 2008 | [sr] |
| |
config.yml.sample | Wed May 14 19:17:40 -0700 2008 | [jnewland] |
| |
git-wiki.rb | Wed May 14 19:17:40 -0700 2008 | [jnewland] |
| |
public/ | Fri Mar 28 06:22:39 -0700 2008 | [sr] |
| |
sinatra_http_auth.rb | Wed May 14 19:17:40 -0700 2008 | [jnewland] |
| |
vendor/ | Sun May 04 03:59:06 -0700 2008 | [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
Install the gem daemons.
% sudo gem install daemonsCreate 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
Install it as a boot service. On Ubuntu, run
% sudo /usr/sbin/update-rc.d git-wiki defaults




