Hi, I’m trying to get SG hooked up in one of my apps and for some reason the changed event is only firing when I make changes from the SG Port, 4985. If I edit the documents from the Server directly, 8091, the document gets updated on the SG as well, but there is no event fired.
Here is my config file:
{
“log”: [“HTTP+”],
“CORS”: {
“origin”:[“http://servername:4985”],
“loginOrigin”:[“http://servername:4985”],
“headers”:[“Content-Type”],
“maxAge”: 1728000
},
“databases”: {
“db”: {
“server”: “http://localhost:8091”,
“bucket”: “Bucket”,
“enable_shared_bucket_access”:true,
“import_docs”: “continuous”,
“username”: “admin”,
“password”: “admin”,
“users”: {“GUEST”: {“disabled”: false, “admin_channels”: ["*"]}},
“sync”: function (doc, oldDoc) { if (doc.sdk) { channel(doc.sdk); } }
}
}
}
Is there a step I skipped?
Thanks,
Shahid