git-instaweb

Don’t fight it. Just install lighttpd and get on with your life.

The git-instaweb command performs the same basic function as “hg serve” in Mercurial, publishing a git repository using a web server.

Currently apache2, lighttpd, mongoose, plackup and webrick are supported. (Default: lighttpd)

This means that lighttpd works without any special configuration. Just cd into your repository and do a “git instaweb” and the script will launch the server and your web browser already dialed up to the right host and port. Things aren’t quite as easy with Apache HTTPD, at least how its implemented in Red Hat Linux. Since lighttpd takes less than 1MB on disk the smart thing to do is to just install that package and move on.

This entry was posted in Development, System Administration on by .

About phil

My name is Phil Lembo. In my day job I’m an enterprise IT architect for a leading distribution and services company. The rest of my time I try to maintain a semi-normal family life in the suburbs of Raleigh, NC. E-mail me at philipATlembobrothersDOTcom. The opinions expressed here are entirely my own and not those of my employers, past, present or future (except where I quote others, who will need to accept responsibility for their own rants).