Guest User

Untitled

a guest
Jun 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1.  
  2. module.exports = function(app){
  3. app.configure(function(){
  4. app.set('views', __dirname + '/views');
  5. app.set('view engine', 'jade');
  6. app.use(express.bodyDecoder());
  7. app.use(express.methodOverride());
  8. app.use(express.compiler({ src: __dirname + '/public', enable: ['less'] }));
  9. app.use(app.router);
  10. app.use(express.staticProvider(__dirname + '/public'));
  11. });
  12.  
  13. app.configure('development', function(){
  14. app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
  15. });
  16.  
  17. app.configure('production', function(){
  18. app.use(express.errorHandler());
  19. });
  20. };
Add Comment
Please, Sign In to add comment