couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: design document replication
Date Fri, 29 Jan 2010 02:00:22 GMT

On 28 Jan 2010, at 16:13, Chris Petersen wrote:

> Hi All,
> 
> I'm currently replicating 3 databases between 4 different CouchDB servers.
> Replication works great, however each server is performing a slightly
> different task and has slightly different views and specifically different
> validation_rules. Currently  the replication is overwriting all the design
> docs, thus replacing my customized views and rules. How can I keep the
> design docs from replicating? Is there a test I can put in the
> validation_rules?

var design = "_design";
if(doc._id.substr(0, design.length) == design) {
  throw({forbidden:"no_ddocs"});
}

Cheers
Jan
--


Mime
View raw message