Correct way to deploy O3 in tomcat

Hello,

apologies for the newbie question. I have been following various wiki articles and documentation pages, and the more I read, the more I get confused :slight_smile:

I am trying to deploy O3 in tomcat.

I have run mvn setup and when running mvn:openrms-sdk:run the application runs great, and I can access it. Now, I want to simply deploy this, so I can run this in a tomcat that runs as a service, so it will stay up and come up with a reboot.

There’s a war file in the created server folder, but that doesn’t seem to resemble what the running app is like.

So my question is simply, what do I need to do to get this app running in tomcat instead of manually having to run the mvn run command? :slight_smile:

Kindest regards,

Wim

Just use docker. Docker can automatically start containers on system startup. You can build a distro with SDK and have docker compose files created for you.

Alternatively clone this repo GitHub - openmrs/openmrs-distro-referenceapplication: The reference distribution of the OpenMRS EMR application (v3) and start it up as explained in the README.

1 Like