You can use the new "host dependent magnolia.properties" stuff ...
That is to say, in your WEB-INF/config/ you can create a directory which
name is exactly the hostname ("hostname -f" in linux) and create the
specific magnolia.properties inside. In those magnolia.properties, you
can just have one line : the "magnolia.repositories.home = value" for
that host.
Cheers,
Anthony
Sean McMains a écrit :
I see that in repositories.xml, all of the repository paths are rooted in
${magnolia.repositories.home}, which is set in magnolia.properties.
What I'd like to be able to do is configure Tomcat so that it can override
that value with one of its own choosing. The idea being that we could deploy
the same WAR file to our dev boxes, which might just use the default
location, and to our production boxes, which have the repository stored
outside of the webapp so that we can redeploy it without disturbing the
repositories. The actual location of the repository could then be set by the
container, rather than the app.
Thanks in advance for any help,
Sean
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------