20140604 git instaweb - plembo/onemoretech GitHub Wiki

title: git-instaweb link: https://onemoretech.wordpress.com/2014/06/04/git-instaweb/ author: phil2nc description: post_id: 7830 created: 2014/06/04 17:37:29 created_gmt: 2014/06/04 21:37:29 comment_status: closed post_name: git-instaweb status: publish post_type: post

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.

Copyright 2004-2019 Phil Lembo