Last active
May 5, 2020 11:31
-
-
Save mks-d/ab72fa075446f950e9ed19d373f2ecfe to your computer and use it in GitHub Desktop.
OpenMRS SDK quick setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Install the SDK | |
# | |
mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk | |
# | |
# Ref App | |
# | |
# Setup Ref App distro | |
mvn openmrs-sdk:setup -DserverId=refapp-2-11 -Ddistro=referenceapplication:2.11.0-SNAPSHOT -DdbUri=jdbc:mysql://localhost:3306/openmrs_refapp-2-11 -DdbUser=root -DdbPassword=root | |
# Run Ref App distro server | |
mvn openmrs-sdk:run -Dport=8080 -Ddebug=58080 -DserverId=refapp-2-11 | |
# Delete server | |
mvn openmrs-sdk:delete -DserverId=refapp-2-11 | |
# | |
# Platform | |
# | |
# Setup Platform distro | |
mvn openmrs-sdk:setup -DserverId=platform-2-4 -Dplatform=2.4.0-SNAPSHOT -DdbUri=jdbc:mysql://localhost:3306/openmrs_platform-2-4 -DdbUser=root -DdbPassword=root | |
# Run Platform distro server | |
mvn openmrs-sdk:run -Dport=8080 -Ddebug=58080 -DserverId=platform-2-4 | |
# | |
# DB dump/restore | |
# | |
# Dump the database just after init setup | |
mysqldump -u root -proot openmrs_platform-2-4 | gzip > ~/openmrs/platform-2-4/openmrs_initsetup.sql.gz | |
# Restore the init setup database | |
gunzip < ~/openmrs/platform-2-4/openmrs_initsetup.sql.gz | mysql -u root -proot openmrs_platform-2-4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment