From 3a12ba177af2400ac004354108148cab4797b352 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 26 Aug 2013 17:10:41 -0400 Subject: [PATCH] possibly fixing issue #202 again --- app.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app.js b/app.js index 1610049e2b..eade1bbb3c 100644 --- a/app.js +++ b/app.js @@ -66,24 +66,23 @@ if(nconf.get('upgrade')) { winston.info('Base Configuration OK.'); meta.configs.init(function() { + // Initial setup for Redis & Reds + var reds = require('reds'); + RDB = require('./src/redis.js'); + reds.createClient = function() { + return reds.client || (reds.client = RDB); + } var categories = require('./src/categories.js'), templates = require('./public/src/templates.js'), webserver = require('./src/webserver.js'), websockets = require('./src/websockets.js'), plugins = require('./src/plugins'), - reds = require('reds'), admin = { 'categories': require('./src/admin/categories.js') }; DEVELOPMENT = true; - RDB = require('./src/redis.js'); - - // Initial setup for Reds - reds.createClient = function() { - return reds.client || (reds.client = RDB); - } global.configuration = {}; global.templates = {};