[MAGNOLIA-3840] Introduce a magnolia.home property to simplify other properties files Created: 19/Sep/11 Updated: 22/Feb/12 Resolved: 22/Feb/12 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | None |
| Fix Version/s: | 4.5 |
| Type: | Improvement | Priority: | Major |
| Reporter: | Magnolia International | Assignee: | Jan Haderka |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
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 ! |
| Comments |
| Comment by Danilo Ghirardelli [ 19/Sep/11 ] |
|
In our projects we are using exactly that scheme, and the property is called "magnolia.base.dir" |