Record of some of the computer tech I deal with so that it's documented at least somewhere.

Monday, 9 March 2009

Working the Werc

I'm giving Werc a try out, I hope the fella's done a good job.

First shizzle I need is an hg client do get a checkout, I notice there's a lot of checkins so it's better this way I reckon. Plus I'll be a contributor before long.

Hg only needs 16.8Mb of files !! hgsvn is the package name - hope it's the right one.

slap:/var/www# rmdir werc
slap:/var/www# hg clone http://gsoc.cat-v.org/hg/werc/

ok that worked out

lighttpd.conf

need to add "mod_cgi", to the modules section or run : lighty-enable-mod cgi

$HTTP["host"] =~ ".*feedideas.$" {
index-file.names = ( )
server.error-handler-404 = "/werc.rc"
alias.url += ( "/werc.rc" => "/var/www/werc/bin/werc.rc" ) # Here use the path to werc.rc in your system.
cgi.assign += ( ".rc" => "")
server.dir-listing = "disable"
}


Then mkdir /var/www/werc/sites/feedideas
echo HelloWorld > /var/www/werc/sites/feedideas/index.html
/etc/init.d/lighttpd restart


Then you can begin the task of skinning your website so it doesn't look like the paedophile cat-v ;)

Apparently werc utilizes markdown but when I tried it, I got literals.

Not totally happy with the directory structure but been working with Uriel on moving a few functions around so you can overload your own.

No comments: