James Moger
2014-05-12 edeab95cac16e5f17cfcd75a9969d8708bf360ab
commit | author | age
8c99a7 1 ## Upgrading Gitblit WAR (1.2.1+)
6c4be1 2 1. Make sure your `WEB-INF/web.xml` *baseFolder* context parameter is not `${contextFolder}/WEB-INF/data`!
8c99a7 3 If it is, move your `WEB-INF/data` folder to a location writeable by your servlet container.
JM 4 2. Deploy new WAR
5 3. Edit the new WAR's `WEB-INF/web.xml` file and set the *baseFolder* context parameter to your external baseFolder.
6 4. Review and optionally apply any new settings as indicated in the [release log](releases.html) to `${baseFolder}/gitblit.properties`. 
7  
8
9 ## Upgrading Gitblit WAR (pre-1.2.1)
10
11 1. Create a `data` as outlined in step 1 of *Upgrading Gitblit GO (pre-1.2.1)*
12 2. Copy your existing web.xml to your data folder
13 3. Deploy new WAR
14 4. Copy the new WAR's `WEB-INF/data/gitblit.properties` file to your data folder
15 5. Manually apply any changes you made to your original web.xml file to the gitblit.properties file you copied to your data folder
16 6. Edit the new WAR's `WEB-INF/web.xml` file and set the *baseFolder* context parameter to your external baseFolder.
17
6d298c 18 ## Upgrading Gitblit WAR (1.4.0+)
JM 19
20 The *baseFolder* context parameter has been replaced with a *baseFolder* JNDI env-entry.  This means you can define the *baseFolder* from the administrative console of your servlet container and not have to manipulate anything in the web.xml file.