blob: f3eef510f2ba906f64e802a4ea9e1d671530aca4 [file] [log] [blame]
Junio C Hamano7ec15722006-07-07 02:03:591git-instaweb(1)
2===============
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-instaweb - Instantly browse your working repository in gitweb
Junio C Hamano7ec15722006-07-07 02:03:597
8SYNOPSIS
9--------
Junio C Hamanoa9b8d242007-05-19 04:51:5510[verse]
Junio C Hamanofce7c7e2008-07-02 03:06:3811'git instaweb' [--local] [--httpd=<httpd>] [--port=<port>]
Junio C Hamanoa9b8d242007-05-19 04:51:5512 [--browser=<browser>]
Junio C Hamanofce7c7e2008-07-02 03:06:3813'git instaweb' [--start] [--stop] [--restart]
Junio C Hamano7ec15722006-07-07 02:03:5914
15DESCRIPTION
16-----------
Junio C Hamanofce7c7e2008-07-02 03:06:3817A simple script to set up `gitweb` and a web server for browsing the local
Junio C Hamano7ec15722006-07-07 02:03:5918repository.
19
20OPTIONS
21-------
22
Junio C Hamanoeb415992008-06-08 22:49:4723-l::
24--local::
Junio C Hamano7ec15722006-07-07 02:03:5925Only bind the web server to the local IP (127.0.0.1).
26
Junio C Hamanoeb415992008-06-08 22:49:4727-d::
28--httpd::
Junio C Hamano7ec15722006-07-07 02:03:5929The HTTP daemon command-line that will be executed.
30Command-line options may be specified here, and the
31configuration file will be added at the end of the command-line.
Junio C Hamanof5de4cf2010-06-19 00:33:1732Currently apache2, lighttpd, mongoose, plackup and webrick are supported.
Junio C Hamano7ec15722006-07-07 02:03:5933(Default: lighttpd)
34
Junio C Hamanoeb415992008-06-08 22:49:4735-m::
36--module-path::
Junio C Hamano7ec15722006-07-07 02:03:5937The module path (only needed if httpd is Apache).
38(Default: /usr/lib/apache2/modules)
39
Junio C Hamanoeb415992008-06-08 22:49:4740-p::
41--port::
Junio C Hamano7ec15722006-07-07 02:03:5942The port number to bind the httpd to. (Default: 1234)
43
Junio C Hamanoeb415992008-06-08 22:49:4744-b::
45--browser::
Junio C Hamano26e590a2008-02-17 03:53:5146The web browser that should be used to view the gitweb
Junio C Hamano2db3e752010-09-03 21:33:0647page. This will be passed to the 'git web{litdd}browse' helper
Junio C Hamano26e590a2008-02-17 03:53:5148script along with the URL of the gitweb instance. See
Junio C Hamano2db3e752010-09-03 21:33:0649linkgit:git-web{litdd}browse[1] for more information about this. If
Junio C Hamano26e590a2008-02-17 03:53:5150the script fails, the URL will be printed to stdout.
Junio C Hamano7ec15722006-07-07 02:03:5951
Junio C Hamanoa9788762010-08-03 15:15:5452start::
Junio C Hamano7ec15722006-07-07 02:03:5953--start::
Junio C Hamano4c4b0122011-06-30 01:19:3254Start the httpd instance and exit. Regenerate configuration files
55as necessary for spawning a new instance.
Junio C Hamano7ec15722006-07-07 02:03:5956
Junio C Hamanoa9788762010-08-03 15:15:5457stop::
Junio C Hamano7ec15722006-07-07 02:03:5958--stop::
59Stop the httpd instance and exit. This does not generate
60any of the configuration files for spawning a new instance,
61nor does it close the browser.
62
Junio C Hamanoa9788762010-08-03 15:15:5463restart::
Junio C Hamano7ec15722006-07-07 02:03:5964--restart::
Junio C Hamano4c4b0122011-06-30 01:19:3265Restart the httpd instance and exit. Regenerate configuration files
66as necessary for spawning a new instance.
Junio C Hamano7ec15722006-07-07 02:03:5967
68CONFIGURATION
69-------------
70
71You may specify configuration in your .git/config
72
73-----------------------------------------------------------------------
74[instaweb]
75local = true
76httpd = apache2 -f
77port = 4321
78browser = konqueror
79modulepath = /usr/lib/apache2/modules
80
81-----------------------------------------------------------------------
82
Junio C Hamano0c0da5f2007-12-13 02:45:3083If the configuration variable 'instaweb.browser' is not set,
Junio C Hamano26e590a2008-02-17 03:53:5184'web.browser' will be used instead if it is defined. See
Junio C Hamano2db3e752010-09-03 21:33:0685linkgit:git-web{litdd}browse[1] for more information about this.
Junio C Hamano0c0da5f2007-12-13 02:45:3086
Junio C Hamano11821ed2011-10-19 18:42:0987SEE ALSO
88--------
89linkgit:gitweb[1]
90
Junio C Hamano7ec15722006-07-07 02:03:5991GIT
92---
Junio C Hamanof7c042d2008-06-06 22:50:5393Part of the linkgit:git[1] suite