I have a couch base server running on amazon EC2. I have 2 buckets …
- sync_gateway for syncing data from web app & mobile app.
- myDb for having my documents… “It is my application database”
I am using config.json file…
{
"log": ["REST", "CRUD", "CRUD+", "HTTP", "HTTP+", "Access", "Cache", "Changes", "Changes+"],
"dbname": "myDb",
"databases": {
"sync_gateway": {
"server": "http://localhost:8091",
"bucket": "sync_gateway",
"sync": `function(doc) {channel(doc.channels);}`
}
}
}
For mobile client I am using ServerUrl as:
http://ec2-54-172-114-247.compute-1.amazonaws.com:4985/sync_gateway/
Problem:
- The documents created from mobile app not coming in myDb.
Please help!!