Ignore:
Timestamp:
03/15/14 01:00:23 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Support different environments with QED_ENV. If dev, run against qed-dev database, if production, run against qed database. The UI indicates if we are running in anything but production mode.
  • Return undefined if we allow page leaves, because null is treated as a value.
  • Changed format of design docs, so it can work for different databases.
  • Use correct design documents in configCouch, so server now actually updates them when it starts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/server/config/config-couchdb.js

    r487 r519  
    2020        }
    2121    }).then(function(res){
    22         console.log("Checking database 'qed'");
    23         return server.get('qed')
     22        console.log("Checking database '"+dbName+"'");
     23        return server.get(dbName)
    2424        .then(function(db){
    25             console.log("Database 'qed' found.");
     25            console.log("Database found.");
    2626        },function(err){
    27             console.log("Creating database 'qed'");
    28             return server.put('qed');
     27            console.log("Creating database.");
     28            return server.put(dbName);
    2929        });
    3030    }).then(function(){
     
    3434                var configAction = doc.__configAction || "replace";
    3535                delete doc.__configAction;
     36                docUrl = dbName+'/'+docUrl;
    3637                switch (configAction) {
    3738                case "ignore":
Note: See TracChangeset for help on using the changeset viewer.