Introduce a magnolia.home property to simplify other properties files
---------------------------------------------------------------------

                 Key: MAGNOLIA-3840
                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3840
             Project: Magnolia
          Issue Type: Improvement
      Security Level: Public
          Components: core
            Reporter: Grégory Joseph
            Assignee: Philipp Bärfuss
             Fix For: 4.4.x, 4.5


Consider the following:
{code}
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
{code}

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:
{code}
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
{code}

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
{code}
magnolia.home=/opt/magnolia-community-forums/data/author/
{code}

This should be the default !
(of course, I'm fine with giving this property another name entirely)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to