In my bootstrap folder I'm creating a document in _replicator to replicate from one database setup via bootstrap to another database setup via bootstrap. It seems because _replicator comes first alphabetically it's parsed by couchdb-bootstrap first before the other databases are setup. This is causing the replication document created to fail.
The replicator document shows _replication_state is error and _replication_state_reason is
Couldn't open document _design/myddocname from source database models: {error,<<"not_found">>}
I either have to run setup twice or re-save the replicator document to fix the error.