Skip to content

Commit

Permalink
Replace support/connect-mongodb.js to the npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
lusever committed Jun 7, 2012
1 parent 23dbf75 commit 2ffb715
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 227 deletions.
4 changes: 1 addition & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ var rootpath = process.cwd() + '/',
path = require('path'),
fs = require('fs'),
express = require('express'),
mongoose = require('mongoose'),
nodepath = require('path'),
stylus = require('stylus'),
colors = require('colors'),
calipso = require(path.join(rootpath, 'lib/calipso')),
translate = require(path.join(rootpath, 'i18n/translate')),
logo = require(path.join(rootpath, 'logo')),
mongoStore = require(path.join(rootpath, 'support/connect-mongodb'));
logo = require(path.join(rootpath, 'logo'));

// Local App Variables
var path = rootpath,
Expand Down
4 changes: 1 addition & 3 deletions lib/core/Module.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
var app, rootpath = process.cwd() + '/',
path = require('path'),
calipso = require(path.join('..', 'calipso')),
mongoStore = require(path.join(rootpath, 'support/connect-mongodb')),
mongoose = require('mongoose');
calipso = require(path.join('..', 'calipso'));

/**
* Route all of the modules based on the module event model
Expand Down
6 changes: 3 additions & 3 deletions lib/core/Storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
var rootpath = process.cwd(),
path = require('path'),
events = require('events'),
mongoStore = require(path.join(rootpath, 'support/connect-mongodb')),
mongoStore = require('connect-mongodb'),
mongoose = require('mongoose'),
calipso = require(path.join('..', 'calipso'));

Expand Down Expand Up @@ -68,8 +68,8 @@ Storage.prototype.mongoConnect = function(dbUri, checkInstalling, next) {
foundMiddleware = true;
mw = calipso.lib.express.session({
secret: calipso.config.get('session:secret'),
store: mongoStore({
url: calipso.config.get('database:uri')
store: new mongoStore({
db: calipso.db.db
})
});
mw.tag = 'session';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"stylus": "0.23.x",
"underscore":"1.3.x",
"mongoose": "2.5.x",
"connect-mongodb": "1.1.x",
"winston": "0.5.x",
"mongodb": "0.9.x",
"qs": "0.4.x",
"request":"2.9.x",
"pool":"0.4.x",
Expand Down
217 changes: 0 additions & 217 deletions support/connect-mongodb.js

This file was deleted.

0 comments on commit 2ffb715

Please sign in to comment.