From d5bf44ada8f9df5e0f8895bdeb0f38e7615b7e29 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 4 Jan 2018 18:41:31 +0100 Subject: [PATCH] Keep localhost for mongodb and redis --- config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index 578f2d5b8..47b232c3f 100644 --- a/config.js +++ b/config.js @@ -263,13 +263,13 @@ CONFIG.JWT_COOKIE_NAMES = uniq(CONFIG.JWT_COOKIE_NAMES.concat([CONFIG.JWT_COOKIE // testing environment. Every new mongo instance comes with a test database by // default, this is consistent with common testing and use case practices. if (process.env.NODE_ENV === 'test' && !CONFIG.MONGO_URL) { - CONFIG.MONGO_URL = `mongodb://${localAddress}/test`; + CONFIG.MONGO_URL = 'mongodb://localhost/test'; } // Reset the redis url in the event it hasn't been overridden and we are in a // testing environment. if (process.env.NODE_ENV === 'test' && !CONFIG.REDIS_URL) { - CONFIG.REDIS_URL = `redis://${localAddress}/1`; + CONFIG.REDIS_URL = 'redis://localhost/1'; } // REDIS_CLUSTER_CONFIGURATION should be parsed when the cluster mode !== none.