Skip to content

Determine how couch documents are created now

Azul posted this review request https://review.leap.se/r/124 and asked that we come up with a way in the platform to load the couch design documents during the couchdb deploy rather than on the webapp itself. How it is now is that if you deploy a couchdb node after the webapp, then the webapp is broken.

Right now with the webapp, we have this script called 'migrate_design_documents' that first set the admin credentials, and then runs (twice):

RAILS_ENV=production /usr/bin/bundle exec rake couchrest:migrate
RAILS_ENV=production /usr/bin/bundle exec rake couchrest:migrate

and then it puts the non-admin credentials back.

Is this how the design documents are being created now? I can't find anywhere else where they are inserted into couchdb, so I guess that this is it. I wanted to track this down to be sure I knew what pieces we need to remove to migrate to this new system.

Azul, can you assign this back to me when you've responded?

(from redmine: created on 2013-11-19, closed on 2013-11-26, relates #3771 (closed), relates #4595 (closed))