Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 1 | git-instaweb(1) |
| 2 | =============== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | git-instaweb - Instantly browse your working repository in gitweb |
Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
Junio C Hamano | a9b8d24 | 2007-05-19 04:51:55 | [diff] [blame] | 10 | [verse] |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 11 | 'git instaweb' [--local] [--httpd=<httpd>] [--port=<port>] |
Junio C Hamano | a9b8d24 | 2007-05-19 04:51:55 | [diff] [blame] | 12 | [--browser=<browser>] |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 13 | 'git instaweb' [--start] [--stop] [--restart] |
Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 14 | |
| 15 | DESCRIPTION |
| 16 | ----------- |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 17 | A simple script to set up `gitweb` and a web server for browsing the local |
Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 18 | repository. |
| 19 | |
| 20 | OPTIONS |
| 21 | ------- |
| 22 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 23 | -l:: |
| 24 | --local:: |
Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 25 | Only bind the web server to the local IP (127.0.0.1). |
| 26 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 27 | -d:: |
| 28 | --httpd:: |
Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [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. |
Junio C Hamano | 764a667 | 2007-10-23 01:23:31 | [diff] [blame] | 32 | Currently lighttpd, apache2 and webrick are supported. |
Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 33 | (Default: lighttpd) |
| 34 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 35 | -m:: |
| 36 | --module-path:: |
Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 37 | The module path (only needed if httpd is Apache). |
| 38 | (Default: /usr/lib/apache2/modules) |
| 39 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 40 | -p:: |
| 41 | --port:: |
Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 42 | The port number to bind the httpd to. (Default: 1234) |
| 43 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 44 | -b:: |
| 45 | --browser:: |
Junio C Hamano | 26e590a | 2008-02-17 03:53:51 | [diff] [blame] | 46 | The web browser that should be used to view the gitweb |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 47 | page. This will be passed to the 'git-web--browse' helper |
Junio C Hamano | 26e590a | 2008-02-17 03:53:51 | [diff] [blame] | 48 | script along with the URL of the gitweb instance. See |
| 49 | linkgit:git-web--browse[1] for more information about this. If |
| 50 | the script fails, the URL will be printed to stdout. |
Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 51 | |
| 52 | --start:: |
| 53 | Start the httpd instance and exit. This does not generate |
| 54 | any of the configuration files for spawning a new instance. |
| 55 | |
| 56 | --stop:: |
| 57 | Stop the httpd instance and exit. This does not generate |
| 58 | any of the configuration files for spawning a new instance, |
| 59 | nor does it close the browser. |
| 60 | |
| 61 | --restart:: |
| 62 | Restart the httpd instance and exit. This does not generate |
| 63 | any of the configuration files for spawning a new instance. |
| 64 | |
| 65 | CONFIGURATION |
| 66 | ------------- |
| 67 | |
| 68 | You may specify configuration in your .git/config |
| 69 | |
| 70 | ----------------------------------------------------------------------- |
| 71 | [instaweb] |
| 72 | local = true |
| 73 | httpd = apache2 -f |
| 74 | port = 4321 |
| 75 | browser = konqueror |
| 76 | modulepath = /usr/lib/apache2/modules |
| 77 | |
| 78 | ----------------------------------------------------------------------- |
| 79 | |
Junio C Hamano | 0c0da5f | 2007-12-13 02:45:30 | [diff] [blame] | 80 | If the configuration variable 'instaweb.browser' is not set, |
Junio C Hamano | 26e590a | 2008-02-17 03:53:51 | [diff] [blame] | 81 | 'web.browser' will be used instead if it is defined. See |
| 82 | linkgit:git-web--browse[1] for more information about this. |
Junio C Hamano | 0c0da5f | 2007-12-13 02:45:30 | [diff] [blame] | 83 | |
Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 84 | Author |
| 85 | ------ |
| 86 | Written by Eric Wong <normalperson@yhbt.net> |
| 87 | |
| 88 | Documentation |
| 89 | -------------- |
| 90 | Documentation by Eric Wong <normalperson@yhbt.net>. |
| 91 | |
| 92 | GIT |
| 93 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 94 | Part of the linkgit:git[1] suite |