Install
Install Sputnik (you might want to check Installation for updates):
mkdir ~/sputnik -- or some other directory
cd ~/sputnik
wget http://sputnik.freewisdom.org/files/sputnik_install_2008_02_16.sh
sh sputnik_install_2008_02_16.sh
Install luasvn
./bin/luarocks install luasvn
Install the plugin (soon to be available as a rock)
mkdir share/lua/5.1/versium
mkdir share/lua/5.1/versium/storage
wget http://sputnik-wiki.googlecode.com/svn/trunk/rocks/versium/lua/versium/storage/svn.lua
mv svn.lua share/lua/5.1/versium/storage/
Create a repository
./bin/lua5.1
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
> require"luarocks.require"
> require"svn"
> require"lfs"
> cwd=lfs.currentdir()
> svn.repos_create(cwd.."/my-repo")
Configure Sputnik
Edit your htdocs/sputnik.lua
to use SVN:
SPUTNIK_CONFIG = {
VERSIUM_STORAGE_MODULE = "versium.storage.svn",
VERSIUM_PARAMS = {
repos_url="file:///home/yuri/sputnik/my-repo",
wc="/home/yuri/sputnik/wiki-data"
},
BASE_URL = '/sputnik.lua',
}
require'luarocks.require'
require'sputnik'
sputnik.cgilua_run()
Run and Test
./bin/lua5.1 ./bin/xavante_start
Then go check http://localhost:8080/sputnik.lua