Warning | ||
---|---|---|
| ||
This page has been archived. The information on this page may not be up-to-date or maintained. |
This is an abbreviated version of the guide seen here and is used in the video here.
...
$OPENSHIFT_MYSQL_DB_PORT:
Add a DIY cartridge.
Add MySQL cartridge to the previously created one (OpenShift console -> cartridge -> Databases -> Add MySQL).
...
Move to the resulting directory:
cd $OPENSHIFT_APP_NAME/
...
Connect to the server (second text box on dashboard)
echo <variable name (refer to the top of the document)>
...
Deploy custom Tomcat (Custom here means not the default one for OpenShift. In fact, this variant is upstream.)
...
git pull -s recursive -X theirs tomcat-upstream master
git push
...
Deploy OpenMRS to server:
...
git commit -m 'Deployed OpenMRS Platform 1.10.1'
git push
Configure OpenMRS on low level:
...
connection.url=jdbc:mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/$OPENSHIFT_APP_NAME?autoReconnect=true" >> diy/openmrs/openmrs-runtime.properties
Commit and push the changes:
...
git commit -m 'Configured OpenMRS'
git push
...
Proceed to high-level OpenMRS configuration via browser. You should not select 'Simple' as type of installation as it assumes having MySQL root, etc.