Explorar o código

modify mongoose-utils for dev in container

Yuki Takei %!s(int64=5) %!d(string=hai) anos
pai
achega
8c1e35ef07
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lib/util/mongoose-utils.js

+ 1 - 1
src/lib/util/mongoose-utils.js

@@ -7,7 +7,7 @@ const getMongoUri = () => {
     || env.MONGODB_URI // MONGOLAB changes their env name
     || env.MONGOHQ_URL
     || env.MONGO_URI
-    || ((env.NODE_ENV === 'test') ? 'mongodb://localhost/growi_test' : 'mongodb://localhost/growi');
+    || ((env.NODE_ENV === 'test') ? 'mongodb://mongo/growi_test' : 'mongodb://mongo/growi');
 };
 
 const getModelSafely = (modelName) => {