Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3840

Introduce a magnolia.home property to simplify other properties files

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 4.5
    • None
    • core
    • None

    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 !
      (of course, I'm fine with giving this property another name entirely)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                had Jan Haderka
                gjoseph Magnolia International
                Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD