15app.set('view engine', 'ejs');
16
17▶// our custom "verbose errors" setting
18// which we can use in the templates
19// via settings['verbose errors']
· · ·
19▶// via settings['verbose errors']
20app.enable('verbose errors');
21
· · ·
20▶app.enable('verbose errors');
21
22// disable them in production
· · ·
23▶// use $ NODE_ENV=production node examples/error-pages
24if (app.settings.env === 'production') app.disable('verbose errors')
25
· · ·
24▶if (app.settings.env === 'production') app.disable('verbose errors')
25
26silent || app.use(logger('dev'));
+ 15 more matches in this file