Gitblit – Moving the basefolder

For some reason on the Mac running Tomcat 8 editing the BASEFOLDER location in the web.xml does not work.

However setting an environment variable works.

Add

   <Environment name="baseFolder" type="java.lang.String" value="/gitblit/" override="false" />

to /usr/local/Cellar/tomcat/VERSIONNUMBER/libexec/conf/context.xml