Deploy sync function to server


#1

Why in the Sync Gateway Admin UI i get the “preview result” but not the “deployed result”?
Even if i push over the “deploy to server” button nothing changes (i get a warning about using walrus…).

I’ve installed the real couchbase server.

This is the serviceconfig.json:

{
	"log": ["CRUD+", "REST+", "Changes+", "Attach+"],
	"adminInterface": "127.0.0.1:4985",
	"interface": "0.0.0.0:4984",
	"databases": {
		"university-notes": {
			"server": "http://localhost:8091",
			"bucket":"default",
			"sync": `
function(doc){
	if(doc.type == "STUDENT") {
		channel(doc.name)
		access(doc.name, doc.name)
	}
}`,
			"users": {
			    "GUEST": {"disabled": false, "admin_channels": ["*"]}
			}
		}
	}
}