openmrs-core war file deployment on tomcat 9

Hi Team,

i just clone the core , rest and fhir2 repos and build after the build the core i run the the server using jetty in /webapps path after that .openMRS folder is created and copied the both fhir2 and rest .omod on module folder of .openMRS folder , it is working fine locally .

But I want to deploy same on tomcat9 openmrs.war file So do i need to create .openMRS folder again in /tomcat somewhere or it takes from the all the modules and runtime properties file from already created .openMRS folder only?

Hope you find this documentation helpful.

If you don’t set the OPENMRS_APPLICATION_DATA_DIRECTORY system property, OpenMRS will default to ~/.OpenMRS for whoever the current running user is, so if Tomcat is launched as the same user that you are launching Jetty as, it will use the same directory.

2 Likes