mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-29 03:40:27 +01:00
first commit
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
var winston = require('winston'),
|
||||
async = require('async'),
|
||||
nconf = require('nconf'),
|
||||
express = require('express'),
|
||||
session = require('express-session'),
|
||||
db,
|
||||
mongoClient,
|
||||
mongoStore;
|
||||
@@ -41,7 +41,7 @@
|
||||
module.init = function(callback) {
|
||||
try {
|
||||
mongoClient = require('mongodb').MongoClient;
|
||||
mongoStore = require('connect-mongo')(express);
|
||||
mongoStore = require('connect-mongo')({session: session});
|
||||
} catch (err) {
|
||||
winston.error('Unable to initialize MongoDB! Is MongoDB installed? Error :' + err.message);
|
||||
process.exit();
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
var winston = require('winston'),
|
||||
nconf = require('nconf'),
|
||||
path = require('path'),
|
||||
express = require('express'),
|
||||
session = require('express-session'),
|
||||
utils = require('./../../public/src/utils.js'),
|
||||
redis,
|
||||
connectRedis,
|
||||
@@ -40,7 +40,7 @@
|
||||
module.init = function(callback) {
|
||||
try {
|
||||
redis = require('redis');
|
||||
connectRedis = require('connect-redis')(express);
|
||||
connectRedis = require('connect-redis')({session: session});
|
||||
reds = require('reds');
|
||||
} catch (err) {
|
||||
winston.error('Unable to initialize Redis! Is Redis installed? Error :' + err.message);
|
||||
|
||||
Reference in New Issue
Block a user