The manual at http://couchapp.org/page/couchapp-config says that you can store passwords in ~/.couchapp.conf
. However, the db
url is acutally the url to the specific database. If there are two applications in different databases, say /db1
and /db2
, then we'd have to have this:
{
"env" : {
"default" : {
"db" : "http://admin:pass@localhost:5984/db1"
}
}
}
and:
{
"env" : {
"default" : {
"db" : "http://admin:pass@localhost:5984/db2"
}
}
}
but I don't see how this can be merged into one (unless instead of default
a hack is used to add one "environment" per DB, e.g. default-db1
and default-db2
and such).
How can I combine this into one, so e.g. I specify db1
and db2
within .couchapprc
files in respective applications or something similar?