On Monday, March 3, 2014 8:49:24 AM UTC-8, [email protected] wrote:
>
> Hi Chris,
>
> The config.json posted here is the same I used on my local sync_gateway
> version.
> In fact, the FAQ section on couchbasecloud.com shows a config.json very
> similar to mine (except it uses default values).
> If the cloud version of sync_gateway does not support but just the sync
> function it should have been clearly stated there.
>
In your config the sync function should be inside of a particular database,
eg under the "restaurants" key. The FAQ has it like this:
{
"interface":":4984",
"adminInterface":":4985",
"log":["REST"],
"databases":{
"sync_gateway":{
"server":"http://localhost:8091",
"bucket":"sync_gateway",
"sync":`function(doc) {channel(doc.channels);}`
}
}
Maybe that will help? You have the default sync function in there, so it'll
be hard to tell when you've got it right, maybe modify to something like
function(doc){
channel("all");
channel(doc.channels);
}
This way if you have an "all" channel you know its running.
> But anyway, do you know why I'm getting different results using exactly
> the same config.json?
>
> Regards!
> //Javier
>
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/6904a69c-ce09-46e2-8e4c-686e9c8668cd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.