[submodule "etherpad-lite"]
path = etherpad-lite
url = https://github.com/chapel/etherpad-lite
+[submodule "bc"]
+ path = bc
+ url = https://github.com/finalsclubdev/bc.git
// Sessions are stored in mongodb which allows them
// to be persisted even between server restarts.
app.set( 'sessionStore', new mongoStore( {
+ 'db' : 'fc',
'url' : app.set( 'dbUri' )
}));
app.use( app.router );
app.use(express.logger({ format: ':method :url' }));
- // This is the errorHandler set in configuration earlier
- // being set to a variable to be used after all other
- // middleware is loaded. Error handling should always
- // come last or near the bottom.
- var errorHandler = app.set( 'errorHandler' );
-
- app.use( errorHandler );
+ // This is the command to use the default express error logger/handler
+ app.use(express.errorHandler({ dumpExceptions: true }));
});
// Launch
-mongoose.connect( app.set( 'dbUri' ) );
-mongoose.connection.db.serverConfig.connection.autoReconnect = true
+// mongoose now exepects a mongo url
+mongoose.connect( 'mongodb://localhost/fc' ); // FIXME: make relative to hostname
var mailer = new Mailer( app.set('awsAccessKey'), app.set('awsSecretKey') );