On Fri, Jul 8, 2011 at 5:30 PM, Jonathan Geddes
<[email protected]> wrote:
> CouchDB users,
>
> I'm working on a couchapp, and up untill now, a single rewriter on a single
> database, coupled with a vhost has been all I need.
>
> However, as the complexity of the app grows, I'm starting to need additional
> databases. Now I need a rewriter that spans multiple databases...
>
> Is there a good way to do this within couchdb? I suppose I could set up
> multiple vhosts, but that's not optimal. Can a rewriter in one database
> point to end points in another database somehow?
>
Yes, it's possible.
you have to set secure_rewrites to false in the settings and then you
can use relative paths to go in other db:
{
"from": "/some/path",
"to":"../../../somedb"
}
- benoƮt