|
|
@@ -142,7 +142,7 @@ Crowi.prototype.setupDatabase = function() {
|
|
|
this.env.MONGODB_URI || // MONGOLAB changes their env name
|
|
|
this.env.MONGOHQ_URL ||
|
|
|
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) {
|