Skip to content
tssmits edited this page May 2, 2019 · 5 revisions

Why

As of Flamingo version 4.3.3 it is necessary to set a data directory. It is used for storing the index which is built by Solr.

How

  1. Make a directory which is readable and writeable for the servlet container (ie. tomcat).
  2. Point the parameter flamingo.data.dir to that directory. For this, there are several options:
  3. WEB-INF/web.xml: edit the context-param flamingo.data.dir
  4. META-INF/context.xml: edit the parameter with the name flamingo.data.dir
  5. ${Catalina_base}/conf/server.xml: add a context with the paramters

i:

<context-param>
    <param-name>flamingo.data.dir</param-name>
    <param-value>/opt/flamingo_data</param-value>
</context-param>

ii:

<Parameter name="flamingo.data.dir" value="/opt/flamingo_data" override="false"/>

iii: Under add the following:

  <Context path="/viewer">
       <Parameter name="flamingo.data.dir" value="/opt/flamingo_data" override="false"/>
  </Context>

Documentation on how to set the data directory comes from the Geoserver documentation.