I am writing to seek guidance on deploying a modified version of the OpenMRS 2.x server to a production environment. Here is an outline of the steps I have followed so far and the challenges I am facing:
Steps Undertaken:
- Initial Setup:
- Installed prerequisites: Java, Maven, OpenMRS SDK, and Docker Desktop.
- Set up an OpenMRS 2.x server using the SDK with the following command:
mvn openmrs-sdk:setup -DserverId=platformv2 -DserverPath=C:\OpenMRSserver\platformv2
- Selected MySQL in a Docker container as the database.
- Running the Server:
- Started the server using:
mvn openmrs-sdk:run
- Selected the created server and accessed the OpenMRS 2.x version successfully at: http://localhost:8080/openmrs/
- Customization:
- Cloned the required modules from GitHub to a separate directory.
- Made changes (e.g., logo, favicon, and text modifications).
- Built the OMOD files for each module using:
mvn clean install
- Stopped the server, replaced the old OMOD files in the
modules
folder with the new ones, and restarted the server using the samerun
command. - Verified that the changes were applied correctly in the browser.
- Preparing for Production:
- I believe the next step is to build a
.war
file for deployment. However, I am unsure how to proceed or whether additional steps are required to ensure a successful deployment.
Challenges:
- I am unclear on the exact commands and process needed to generate a production-ready
.war
file from the server setup. - I want to confirm if my approach to modifying the OpenMRS 2.x server is correct or if I have missed any critical steps.
I would greatly appreciate your assistance in guiding me through the WAR file creation process or any recommendations for deploying my customized OpenMRS server to production effectively.
Thank you for your time and support.