Explorar el Código

BugFix the part of determine mongoUri

Yuki Takei hace 9 años
padre
commit
c437882093
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/crowi/index.js

+ 1 - 1
lib/crowi/index.js

@@ -142,7 +142,7 @@ Crowi.prototype.setupDatabase = function() {
     this.env.MONGODB_URI || // MONGOLAB changes their env name
     this.env.MONGODB_URI || // MONGOLAB changes their env name
     this.env.MONGOHQ_URL ||
     this.env.MONGOHQ_URL ||
     this.env.MONGO_URI ||
     this.env.MONGO_URI ||
-    (this.env.NODE_ENV === 'test') ? 'mongodb://localhost/crowi_test' : 'mongodb://localhost/crowi';
+    ((process.env.NODE_ENV === 'test') ? 'mongodb://localhost/crowi_test' : 'mongodb://localhost/crowi')
     ;
     ;
 
 
   return new Promise(function(resolve, reject) {
   return new Promise(function(resolve, reject) {