Skip to content

(pouchdb/pouchb-server#72) - change PouchDB on the fly#149

Merged
nolanlawson merged 1 commit intomasterfrom
change-pouchdb
Dec 18, 2014
Merged

(pouchdb/pouchb-server#72) - change PouchDB on the fly#149
nolanlawson merged 1 commit intomasterfrom
change-pouchdb

Conversation

@marten-de-vries
Copy link
Contributor

pouchdb/pouchdb-server#72 needs this for two reasons:

  1. when the couchdb.database_dir config option changes, it needs to update to the new value without a restart.
  2. when starting, it needs to be able to access app.couchConfig for default values for its command line arguments before creating the PouchDB object.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could do

return Promise.all(promises).then(Promise.resolve);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever. I'll keep that in mind.

@nolanlawson
Copy link
Contributor

This is a really clever and elegant solution. Nicely done.

@nolanlawson nolanlawson merged commit 2e8a97c into master Dec 18, 2014
@marten-de-vries marten-de-vries deleted the change-pouchdb branch December 18, 2014 09:52
the-t-in-rtf pushed a commit to the-t-in-rtf/express-pouchdb that referenced this pull request Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants