mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-23 04:47:26 +08:00
catch mongodb-native errors
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
var express = require('express')
|
||||
, app = express.createServer()
|
||||
, db = require('./db').db
|
||||
, mongoStore = require('connect-mongodb');
|
||||
, MongoStore = require('connect-mongodb');
|
||||
;
|
||||
|
||||
// expose the app as a module so everyone can use it
|
||||
@@ -34,7 +34,7 @@ app.configure(function(){
|
||||
secret: 'secret',
|
||||
key: 'deployd.sid',
|
||||
cookie: {httpOnly: false},
|
||||
store: new mongoStore({db: db})
|
||||
store: new MongoStore({db: db})
|
||||
}));
|
||||
app.use(app.router);
|
||||
app.use(express.static(__dirname + '/../public'));
|
||||
|
||||
Reference in New Issue
Block a user