![AMRS OpenMRS 3.x Deployment]
This is the OpenMRS backend configuration for the OpenMRS distribution AMRS.
This configuration is designed to be loaded by:
To build assets for deployment:
-
Install Node.js v16 or above on your system from Node.js website.
-
Two scripts are available to generate frontend assets for deployment: one for the development environment and one for production.
sh setup.sh
sh dev-build.sh
Both scripts generate frontend assets for deployment. Note that for the production build, the
configURL
inindex.html
must be updated, and theconfig.json
file must be updated to include the deployed serverurl
. For example, for our test instance, theindex.html
configURL
ishttps://ngx.ampath.or.ke/amrs/spa/config.json
. -
The built assets are located in a folder named
frontend
. Copy these files to the frontend directory, for example,/var/lib/OpenMRS
.
Please note that our work on patient-registration and esm-login contain custom changes and require updating the respective JavaScript assets: