Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 1 | init |
| 2 | ==== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | init - Initialize a new Gerrit server installation |
| 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
| 11 | 'java' -jar gerrit.war 'init' |
| 12 | -d <SITE_PATH> |
| 13 | [\--batch] |
Shawn O. Pearce | d99326d | 2009-12-14 07:34:04 -0800 | [diff] [blame] | 14 | [\--no-auto-start] |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 15 | |
| 16 | DESCRIPTION |
| 17 | ----------- |
| 18 | Creates a new Gerrit server installation, interactively prompting |
| 19 | for some basic setup prior to writing default configuration files |
| 20 | into a newly created `$site_path`. |
| 21 | |
| 22 | If run an an existing `$site_path`, init will upgrade some resources |
Shawn O. Pearce | 89cefce | 2010-12-08 18:30:43 -0800 | [diff] [blame^] | 23 | as necessary. |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 24 | |
| 25 | OPTIONS |
| 26 | ------- |
| 27 | \--batch:: |
| 28 | Run in batch mode, skipping interactive prompts. Reasonable |
| 29 | configuration defaults are chosen based on the whims of |
| 30 | the Gerrit developers. |
| 31 | |
Shawn O. Pearce | d99326d | 2009-12-14 07:34:04 -0800 | [diff] [blame] | 32 | \--no-auto-start:: |
| 33 | Don't automatically start the daemon after initializing a |
| 34 | newly created site path. This permits the administartor |
| 35 | to inspect and modify the configuration before the daemon |
| 36 | is started. |
| 37 | |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 38 | -d:: |
| 39 | \--site-path:: |
| 40 | Location of the gerrit.config file, and all other per-site |
| 41 | configuration data, supporting libaries and log files. |
| 42 | |
| 43 | CONTEXT |
| 44 | ------- |
| 45 | This command can only be run on a server which has direct |
| 46 | connectivity to the metadata database, and local access to the |
| 47 | managed Git repositories. |
| 48 | |
| 49 | GERRIT |
| 50 | ------ |
| 51 | Part of link:index.html[Gerrit Code Review] |