You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

upgrade_go.mkd 3.5KB

11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ## Upgrading Gitblit GO (1.9.1+)
  2. The command line to start Gitblit has changed from
  3. ```
  4. java -jar gitblit.jar --baseFolder data
  5. ```
  6. to
  7. ```
  8. java -cp "gitblit.jar:ext/*" com.gitblit.GitBlitServer --baseFolder data
  9. ```
  10. or on Windows to
  11. ```
  12. java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.GitBlitServer --baseFolder data
  13. ```
  14. The class path and main class need to be specified now. If you have installed Gitblit as a service you will need to adjust the service scripts or definitions accordingly.
  15. ## Upgrading Gitblit GO (1.7.0+)
  16. The default `gitblit.properties` file has been split into two files: `gitblit.properties`, which is the recommended file for setting your configuration, and `defaults.properties` which are Gitblit's default settings.
  17. # Include Gitblit's 'defaults.properties' within your configuration.
  18. #
  19. # COMMA-DELIMITED
  20. # SINCE 1.7.0
  21. include = defaults.properties
  22. Notice that the default settings are *included* by your `gitblit.properties` file. The disadvantage to this approach is you must flip between discovering/reading the settings in `defaults.properties` and setting them in `gitblit.properties`, but there are some clear advantages too. This setup is not required. You may continue to keep all your settings in `gitblit.properties` like before.
  23. Additionally you may find it useful if you are maintaining several Gitblit instances to share common properties files.
  24. ## Upgrading Gitblit GO (1.2.1+)
  25. 1. Unzip Gitblit GO to a new folder
  26. 2. Set the *--baseFolder* argument to point to your old `data` folder
  27. 3. Review and optionally apply any new settings as indicated in the [release log](releases.html) to `data/gitblit.properties`.
  28. In *nix systems or Windows Vista/7/8, there are other tricks you can play like symlinking the `data` folder or symlinking the GO folder.
  29. All platforms support the *--baseFolder* command-line argument.
  30. ## Upgrading Gitblit GO (pre-1.2.1)
  31. 1. Create a `data` folder and copy the following files and folders to it:
  32. - **users.conf**
  33. - **projects.conf** *(if you have one)*
  34. - **gitblit.properties**
  35. - **serverKeystore.jks**
  36. - **serverTrustStore.jks**
  37. - **certs** folder
  38. - **git** folder
  39. - **groovy** folder
  40. - **proposals** folder
  41. - and any other custom files (robots.txt, welcome/login markdown files, etc)
  42. - then edit your `gitblit.properties` file and adjust the following settings:
  43. - *git.repositoriesFolder* = ${baseFolder}/git
  44. - *groovy.scriptsFolder* = ${baseFolder}/groovy
  45. - *groovy.grapeFolder* = ${baseFolder}/groovy/grape
  46. - *web.projectsFile* = ${baseFolder}/projects.conf
  47. - *realm.userService* = ${baseFolder}/users.conf
  48. - *web.robots.txt* = ${baseFolder}/robots.txt
  49. - *federation.proposalsFolder* = ${baseFolder}/proposals
  50. - *realm.ldap.backingUserService* = ${baseFolder}/users.conf
  51. - *realm.redmine.backingUserService* = ${baseFolder}/users.conf
  52. - *server.tempFolder* = ${baseFolder}/temp
  53. 2. Unzip Gitblit GO to a new folder
  54. 3. Copy your `data` folder and overwrite the folder of the same name in the just-unzipped version
  55. 4. Review and optionally apply any new settings as indicated in the [release log](releases.html) to `data/gitblit.properties`.
  56. **NOTE:** You may need to adjust your service definitions to include the `--baseFolder data` argument.
  57. #### Upgrading Windows Service
  58. You may need to delete your old service definition and install a new one depending on what has changed in the release.