| 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 | f5de4cf | 2010-06-19 00:33:17 | [diff] [blame] | 32 | Currently apache2, lighttpd, mongoose, plackup 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 | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 47 | page. This will be passed to the 'git web{litdd}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 | 
| Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 49 | linkgit:git-web{litdd}browse[1] for more information about this. If | 
| Junio C Hamano | 26e590a | 2008-02-17 03:53:51 | [diff] [blame] | 50 | the script fails, the URL will be printed to stdout. | 
| Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 51 |  | 
| Junio C Hamano | a978876 | 2010-08-03 15:15:54 | [diff] [blame] | 52 | start:: | 
| Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 53 | --start:: | 
| Junio C Hamano | 4c4b012 | 2011-06-30 01:19:32 | [diff] [blame] | 54 | Start the httpd instance and exit. Regenerate configuration files | 
|  | 55 | as necessary for spawning a new instance. | 
| Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 56 |  | 
| Junio C Hamano | a978876 | 2010-08-03 15:15:54 | [diff] [blame] | 57 | stop:: | 
| Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 58 | --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 |  | 
| Junio C Hamano | a978876 | 2010-08-03 15:15:54 | [diff] [blame] | 63 | restart:: | 
| Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 64 | --restart:: | 
| Junio C Hamano | 4c4b012 | 2011-06-30 01:19:32 | [diff] [blame] | 65 | Restart the httpd instance and exit. Regenerate configuration files | 
|  | 66 | as necessary for spawning a new instance. | 
| Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 67 |  | 
|  | 68 | CONFIGURATION | 
|  | 69 | ------------- | 
|  | 70 |  | 
|  | 71 | You may specify configuration in your .git/config | 
|  | 72 |  | 
|  | 73 | ----------------------------------------------------------------------- | 
|  | 74 | [instaweb] | 
|  | 75 | local = true | 
|  | 76 | httpd = apache2 -f | 
|  | 77 | port = 4321 | 
|  | 78 | browser = konqueror | 
|  | 79 | modulepath = /usr/lib/apache2/modules | 
|  | 80 |  | 
|  | 81 | ----------------------------------------------------------------------- | 
|  | 82 |  | 
| Junio C Hamano | 0c0da5f | 2007-12-13 02:45:30 | [diff] [blame] | 83 | If the configuration variable 'instaweb.browser' is not set, | 
| Junio C Hamano | 26e590a | 2008-02-17 03:53:51 | [diff] [blame] | 84 | 'web.browser' will be used instead if it is defined. See | 
| Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 85 | linkgit:git-web{litdd}browse[1] for more information about this. | 
| Junio C Hamano | 0c0da5f | 2007-12-13 02:45:30 | [diff] [blame] | 86 |  | 
| Junio C Hamano | 7ec1572 | 2006-07-07 02:03:59 | [diff] [blame] | 87 | GIT | 
|  | 88 | --- | 
| Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 89 | Part of the linkgit:git[1] suite |