Directly invoke and serve GitWeb through NodeJS.
This module uses node-cgi to invoke the gitweb.cgi
perl file.
var http = require('http');
var gitweb = require('gitweb');
http.createServer( gitweb('/') ).listen(80);
That's a very simple example.
The first argument is the mountPoint
. This is the HTTP url in which
GitWeb will be served from. It MUST start and end with a /
slash character.
It's recommended to also pass a second argument, a config
Object,
that can take the following parameters:
process.env.HOME
.<title>
on each page. Default: GitWeb powered by Node
.gitweb.cgi
file. This can really just be any arbitrary String. Default: 1.7.1
.100
.tgz
or zip
.