Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 1 | git-instaweb(1) |
| 2 | =============== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | c3f0baa | 2007-01-18 15:53:37 -0800 | [diff] [blame] | 6 | git-instaweb - Instantly browse your working repository in gitweb |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
Matthias Kestenholz | 97925fd | 2007-05-18 15:39:34 +0200 | [diff] [blame] | 10 | [verse] |
Jonathan Nieder | b1889c3 | 2008-06-30 01:09:04 -0500 | [diff] [blame] | 11 | 'git instaweb' [--local] [--httpd=<httpd>] [--port=<port>] |
Matthias Kestenholz | 97925fd | 2007-05-18 15:39:34 +0200 | [diff] [blame] | 12 | [--browser=<browser>] |
Jonathan Nieder | b1889c3 | 2008-06-30 01:09:04 -0500 | [diff] [blame] | 13 | 'git instaweb' [--start] [--stop] [--restart] |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 14 | |
| 15 | DESCRIPTION |
| 16 | ----------- |
Jonathan Nieder | 483bc4f | 2008-06-30 13:56:34 -0500 | [diff] [blame] | 17 | A simple script to set up `gitweb` and a web server for browsing the local |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 18 | repository. |
| 19 | |
| 20 | OPTIONS |
| 21 | ------- |
| 22 | |
Stephan Beyer | 3240240 | 2008-06-08 03:36:09 +0200 | [diff] [blame] | 23 | -l:: |
| 24 | --local:: |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 25 | Only bind the web server to the local IP (127.0.0.1). |
| 26 | |
Stephan Beyer | 3240240 | 2008-06-08 03:36:09 +0200 | [diff] [blame] | 27 | -d:: |
| 28 | --httpd:: |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 29 | 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. |
Arti Zirk | 2eb14bb | 2019-01-28 15:24:59 +0200 | [diff] [blame] | 32 | Currently apache2, lighttpd, mongoose, plackup, python and |
| 33 | webrick are supported. |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 34 | (Default: lighttpd) |
| 35 | |
Stephan Beyer | 3240240 | 2008-06-08 03:36:09 +0200 | [diff] [blame] | 36 | -m:: |
| 37 | --module-path:: |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 38 | The module path (only needed if httpd is Apache). |
| 39 | (Default: /usr/lib/apache2/modules) |
| 40 | |
Stephan Beyer | 3240240 | 2008-06-08 03:36:09 +0200 | [diff] [blame] | 41 | -p:: |
| 42 | --port:: |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 43 | The port number to bind the httpd to. (Default: 1234) |
| 44 | |
Stephan Beyer | 3240240 | 2008-06-08 03:36:09 +0200 | [diff] [blame] | 45 | -b:: |
| 46 | --browser:: |
Christian Couder | b261ec4 | 2008-02-09 07:10:57 +0100 | [diff] [blame] | 47 | The web browser that should be used to view the gitweb |
Junio C Hamano | 2839478 | 2010-08-23 14:20:25 -0700 | [diff] [blame] | 48 | page. This will be passed to the 'git web{litdd}browse' helper |
Christian Couder | cb45f83 | 2008-02-14 08:01:23 +0100 | [diff] [blame] | 49 | script along with the URL of the gitweb instance. See |
Junio C Hamano | 2839478 | 2010-08-23 14:20:25 -0700 | [diff] [blame] | 50 | linkgit:git-web{litdd}browse[1] for more information about this. If |
Christian Couder | cb45f83 | 2008-02-14 08:01:23 +0100 | [diff] [blame] | 51 | the script fails, the URL will be printed to stdout. |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 52 | |
Jared Hance | b73f294 | 2010-08-02 14:20:38 -0400 | [diff] [blame] | 53 | start:: |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 54 | --start:: |
Jakub Narebski | 5ad6d38 | 2011-06-23 23:01:03 +0200 | [diff] [blame] | 55 | Start the httpd instance and exit. Regenerate configuration files |
| 56 | as necessary for spawning a new instance. |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 57 | |
Jared Hance | b73f294 | 2010-08-02 14:20:38 -0400 | [diff] [blame] | 58 | stop:: |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 59 | --stop:: |
| 60 | Stop the httpd instance and exit. This does not generate |
| 61 | any of the configuration files for spawning a new instance, |
| 62 | nor does it close the browser. |
| 63 | |
Jared Hance | b73f294 | 2010-08-02 14:20:38 -0400 | [diff] [blame] | 64 | restart:: |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 65 | --restart:: |
Jakub Narebski | 5ad6d38 | 2011-06-23 23:01:03 +0200 | [diff] [blame] | 66 | Restart the httpd instance and exit. Regenerate configuration files |
| 67 | as necessary for spawning a new instance. |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 68 | |
| 69 | CONFIGURATION |
| 70 | ------------- |
| 71 | |
| 72 | You may specify configuration in your .git/config |
| 73 | |
| 74 | ----------------------------------------------------------------------- |
| 75 | [instaweb] |
| 76 | local = true |
| 77 | httpd = apache2 -f |
| 78 | port = 4321 |
| 79 | browser = konqueror |
Nguyễn Thái Ngọc Duy | da0005b | 2015-03-11 16:32:45 -0400 | [diff] [blame] | 80 | modulePath = /usr/lib/apache2/modules |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 81 | |
| 82 | ----------------------------------------------------------------------- |
| 83 | |
Tom Russello | ae9f631 | 2016-06-08 19:23:16 +0200 | [diff] [blame] | 84 | If the configuration variable `instaweb.browser` is not set, |
| 85 | `web.browser` will be used instead if it is defined. See |
Junio C Hamano | 2839478 | 2010-08-23 14:20:25 -0700 | [diff] [blame] | 86 | linkgit:git-web{litdd}browse[1] for more information about this. |
Christian Couder | b261ec4 | 2008-02-09 07:10:57 +0100 | [diff] [blame] | 87 | |
Jakub Narebski | 86ce2d5 | 2011-10-16 13:07:33 +0200 | [diff] [blame] | 88 | SEE ALSO |
| 89 | -------- |
| 90 | linkgit:gitweb[1] |
| 91 | |
Eric Wong | a51d37c | 2006-07-01 15:14:14 -0700 | [diff] [blame] | 92 | GIT |
| 93 | --- |
Christian Couder | 9e1f0a8 | 2008-06-06 09:07:32 +0200 | [diff] [blame] | 94 | Part of the linkgit:git[1] suite |