app.configure(function(){ app.use(express.logger('\x1b[33m:method\x1b[0m \x1b[32m:url\x1b[0m :response-time')); app.use(express.bodyParser()); app.use(session({ secret: 'HPSECRET' })); app.use(passport.initialize()); app.use(passport.session()); app.use(express.methodOverride()); app.use(express.cookieParser()); app.use(express.static(__dirname + '/public')); app.use(app.router); app.use(express.errorHandler({dumpExceptions: true, showStack: true})); });
app.configure('development', function(){ app.use(express.errorHandler()); });
app.configure(function() { app.use(express.methodOverride()); app.use(express.bodyParser()); app.use(allowCrossDomain); app.use(express.static(path.join(__dirname, '../bower_components/'))); app.use(express.static(path.join(__dirname, '../lib/'))); app.use(express.static(path.join(__dirname, '../example'))); app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); app.use(app.router); });
app.configure('development', function () { app.use(express.errorHandler()); });
app.configure('development', function(){ app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); });
app.configure('development', function(){ app.use(express.errorHandler()); });
app.configure('production', function(){ app.use(express.errorHandler()); });
app.configure('development', function(){ app.use(express.errorHandler()); });