blob: e8ecdbf927ba5e7af79d3852a9a939c10052e45f [file] [log] [blame]
Eric Wonga51d37c2006-07-01 15:14:14 -07001git-instaweb(1)
2===============
3
4NAME
5----
Junio C Hamanoc3f0baa2007-01-18 15:53:37 -08006git-instaweb - Instantly browse your working repository in gitweb
Eric Wonga51d37c2006-07-01 15:14:14 -07007
8SYNOPSIS
9--------
Matthias Kestenholz97925fd2007-05-18 15:39:34 +020010[verse]
Jonathan Niederb1889c32008-06-30 01:09:04 -050011'git instaweb' [--local] [--httpd=<httpd>] [--port=<port>]
Matthias Kestenholz97925fd2007-05-18 15:39:34 +020012 [--browser=<browser>]
Jonathan Niederb1889c32008-06-30 01:09:04 -050013'git instaweb' [--start] [--stop] [--restart]
Eric Wonga51d37c2006-07-01 15:14:14 -070014
15DESCRIPTION
16-----------
Jonathan Nieder483bc4f2008-06-30 13:56:34 -050017A simple script to set up `gitweb` and a web server for browsing the local
Eric Wonga51d37c2006-07-01 15:14:14 -070018repository.
19
20OPTIONS
21-------
22
Stephan Beyer32402402008-06-08 03:36:09 +020023-l::
24--local::
Eric Wonga51d37c2006-07-01 15:14:14 -070025 Only bind the web server to the local IP (127.0.0.1).
26
Stephan Beyer32402402008-06-08 03:36:09 +020027-d::
28--httpd::
Eric Wonga51d37c2006-07-01 15:14:14 -070029 The HTTP daemon command-line that will be executed.
30 Command-line options may be specified here, and the
31 configuration file will be added at the end of the command-line.
Jakub Narebski78646982010-05-28 21:11:25 +020032 Currently apache2, lighttpd, mongoose, plackup and webrick are supported.
Eric Wonga51d37c2006-07-01 15:14:14 -070033 (Default: lighttpd)
34
Stephan Beyer32402402008-06-08 03:36:09 +020035-m::
36--module-path::
Eric Wonga51d37c2006-07-01 15:14:14 -070037 The module path (only needed if httpd is Apache).
38 (Default: /usr/lib/apache2/modules)
39
Stephan Beyer32402402008-06-08 03:36:09 +020040-p::
41--port::
Eric Wonga51d37c2006-07-01 15:14:14 -070042 The port number to bind the httpd to. (Default: 1234)
43
Stephan Beyer32402402008-06-08 03:36:09 +020044-b::
45--browser::
Christian Couderb261ec42008-02-09 07:10:57 +010046 The web browser that should be used to view the gitweb
Junio C Hamano28394782010-08-23 14:20:25 -070047 page. This will be passed to the 'git web{litdd}browse' helper
Christian Coudercb45f832008-02-14 08:01:23 +010048 script along with the URL of the gitweb instance. See
Junio C Hamano28394782010-08-23 14:20:25 -070049 linkgit:git-web{litdd}browse[1] for more information about this. If
Christian Coudercb45f832008-02-14 08:01:23 +010050 the script fails, the URL will be printed to stdout.
Eric Wonga51d37c2006-07-01 15:14:14 -070051
Jared Hanceb73f2942010-08-02 14:20:38 -040052start::
Eric Wonga51d37c2006-07-01 15:14:14 -070053--start::
Jakub Narebski5ad6d382011-06-23 23:01:03 +020054 Start the httpd instance and exit. Regenerate configuration files
55 as necessary for spawning a new instance.
Eric Wonga51d37c2006-07-01 15:14:14 -070056
Jared Hanceb73f2942010-08-02 14:20:38 -040057stop::
Eric Wonga51d37c2006-07-01 15:14:14 -070058--stop::
59 Stop the httpd instance and exit. This does not generate
60 any of the configuration files for spawning a new instance,
61 nor does it close the browser.
62
Jared Hanceb73f2942010-08-02 14:20:38 -040063restart::
Eric Wonga51d37c2006-07-01 15:14:14 -070064--restart::
Jakub Narebski5ad6d382011-06-23 23:01:03 +020065 Restart the httpd instance and exit. Regenerate configuration files
66 as necessary for spawning a new instance.
Eric Wonga51d37c2006-07-01 15:14:14 -070067
68CONFIGURATION
69-------------
70
71You may specify configuration in your .git/config
72
73-----------------------------------------------------------------------
74[instaweb]
75 local = true
76 httpd = apache2 -f
77 port = 4321
78 browser = konqueror
Nguyễn Thái Ngọc Duyda0005b2015-03-11 16:32:45 -040079 modulePath = /usr/lib/apache2/modules
Eric Wonga51d37c2006-07-01 15:14:14 -070080
81-----------------------------------------------------------------------
82
Tom Russelloae9f6312016-06-08 19:23:16 +020083If the configuration variable `instaweb.browser` is not set,
84`web.browser` will be used instead if it is defined. See
Junio C Hamano28394782010-08-23 14:20:25 -070085linkgit:git-web{litdd}browse[1] for more information about this.
Christian Couderb261ec42008-02-09 07:10:57 +010086
Jakub Narebski86ce2d52011-10-16 13:07:33 +020087SEE ALSO
88--------
89linkgit:gitweb[1]
90
Eric Wonga51d37c2006-07-01 15:14:14 -070091GIT
92---
Christian Couder9e1f0a82008-06-06 09:07:32 +020093Part of the linkgit:git[1] suite