Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Procedure

Hey devs I have been able to achieve this thanks to @dkayiwa.
These are the few steps we went through I hope you follow keenly and be able to get unblocked.

1. Set up your two instances (I used the standalone)

2. load the atom feed and sync2 omod files compiled from source.

(Remember dkayiwa made a commit to these two modules so if you have the old ones you need to get the current with all commits)

3. Edit the child's "openmrs-standalone-runtime.properties" file so that it differs from the parent's.

eg the parent has **openmrs-standalone-runtime.properties** , i changed mine to **openmrs-standalone-irene-runtime.properties**

4. For the child instance, go to tomcat - webapps and edit the two files there to differentiate them from the parent's

eg I changed my two files to **openmrs-standalone-irene** and **openmrs-standalone-irene.war**

5. Edit child sync config json-file for [example](https://pastebin.com/Kc0MajhC)
**Note** take note of;
```
"parentFeedLocation" : "http://localhost:8081/openmrs-standalone",
"localFeedLocation" : "http://localhost:8082/openmrs-standalone-irene",
"localInstanceId" : "local2",
```

and the whitelist
```
"whitelist" : {
"enabled" : false,
"instanceIds" : [ ]
```
6. Edit Parent sync config json-file for [example](https://pastebin.com/Kc0MajhC)

7. Register a patient in the parent instance

8. While in the child do a manual pull from parent and check if the patient has been pulled.

There after I was able to manually pull from parent to child and also manually push from child to parent. 

  • No labels