instaweb: support for Ruby's WEBrick server
authorMike Dalessio <mike@csa.net>
Sat, 6 Oct 2007 17:29:49 +0000 (13:29 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 16 Oct 2007 01:36:19 +0000 (21:36 -0400)
running the webrick server with git requires Ruby and Ruby's YAML and
Webrick libraries (both of which come standard with Ruby). nice for
single-user standalone invocations.

the --httpd=webrick option generates a ruby script on the fly to read
httpd.conf options and invoke the web server via library call. this
script is placed in the .git/gitweb directory. it also generates a
shell script in a feeble attempt to invoke ruby in a portable manner,
which assumes that 'ruby' is in the user's $PATH.

Signed-off-by: Mike Dalessio <mike@csa.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
No differences found