Changeset 487 for Dev/trunk/src/server/config/config-couchdb.js
- Timestamp:
- 03/05/14 22:44:48 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/server/config/config-couchdb.js
r479 r487 5 5 ; 6 6 7 var designDocs = require('./couchdb-design-docs'); 7 module.exports = function(couchServerURL, dbName, designDocs) { 8 var server = new CouchDB(couchServerURL); 8 9 9 module.exports = function(couchServerURL) { 10 var server = new CouchDB(couchServerURL); 10 if ( !designDocs ) { throw new Error("Forgot to pass design docs to checkCouch."); } 11 11 12 12 console.log("Configuring CouchDB for QED"); … … 14 14 return server.get('') 15 15 .then(function(info){ 16 if (info.version !== "1. 2.0" ) {16 if (info.version !== "1.4.0" ) { 17 17 console.log("Found "+info.version+", only tested with CouchDB 1.2.0"); 18 18 } else { 19 console.log("CouchDB 1. 2.0 found");19 console.log("CouchDB 1.4.0 found"); 20 20 } 21 21 }).then(function(res){
Note: See TracChangeset
for help on using the changeset viewer.