-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
Consider the following:
magnolia.cache.startdir=${magnolia.app.rootdir}/cache magnolia.upload.tmpdir=${magnolia.app.rootdir}/tmp magnolia.exchange.history=${magnolia.app.rootdir}/history magnolia.logs.dir=${magnolia.app.rootdir}/logs magnolia.repositories.home=${magnolia.app.rootdir}/repositories
These are the 5 properties you need to change if you want to store all data outside Magnolia's webapp (repository, logs, cache, tmp). It can get pretty cumbersome when you use the 1-war-multiple-setups feature to re-configure the system for several environment.
What I've done, systematically, in my projects, is this:
magnolia.home=${magnolia.app.rootdir} magnolia.cache.startdir=${magnolia.home}/cache magnolia.upload.tmpdir=${magnolia.home}/tmp magnolia.exchange.history=${magnolia.home}/history magnolia.repositories.home=${magnolia.home}/repositories magnolia.logs.dir=${magnolia.home}/logs
This provides exactly the same configuration, but as an added bonus, I can get away with redefining one single property in my "sub" magnolia.properties files, for example
magnolia.home=/opt/magnolia-community-forums/data/author/
This should be the default !
(of course, I'm fine with giving this property another name entirely)
- is duplicated by
-
MAGNOLIA-3909 Add a magnolia.basedir configurable property to easily change the base folder location for repositories, cache and logs
- Closed