Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

This page is outdated and no longer receives updates!

The Application Data Directory is the folder that OpenMRS uses for external storage of data. Typically, this will include things like OpenMRS modules, Lucene indexes, OpenMRS's runtime configuration properties and any attachments. Other files might be added here depending on which modules you have installed.

...

You have several options if you want to have control over where this directory is:

  1. Add a key to your runtime properties file:

    • application_data_directory=/my/custom/location/

  2. Setup the CATALINA_OPTS  environment variable for the user running Tomcat to include -DOPENMRS_APPLICATION_DATA_DIRECTORY=<path>.

  3. Modify the conf/Catalina/openmrs/context.xml file in your tomcat (or other server) config:

  4. Modify the openmrs.war file: /WEB-INF/web.xml file

    • Change the context parameter "application.data.directory" to whatever directory you want.

For Developers

There are several convenience methods to help developers findSee the methods:

...