Versions Compared

Key

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

...

  1. Add a key to your runtime properties file:
    • application_data_directory=/my/custom/location/
  2. Modify the openmrs.war file: /WEB-INF/web.xml file
    • Change the context parameter "application.data.directory" to something. (use a trailing slash)
  3. Modify the conf/Catalina/openmrs/context.xml file in your tomcat (or other server) config:

For Developers

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

Code Block

OpenmrsUtil.getApplicationDataDirectory()

and

Code Block

OpenmrsUtil.getDirectoryInApplicationDataDirectory(String folderName)