Ver Fonte

remove app.configure

Henry Oswald há 8 anos atrás
pai
commit
ac990f2aba
1 ficheiros alterados com 1 adições e 10 exclusões
  1. 1 10
      services/filestore/app.coffee

+ 1 - 10
services/filestore/app.coffee

@@ -16,16 +16,7 @@ Metrics.open_sockets.monitor(logger)
 Metrics.event_loop?.monitor(logger)
 Metrics.event_loop?.monitor(logger)
 Metrics.memory.monitor(logger)
 Metrics.memory.monitor(logger)
 
 
-app.configure ->
-	app.use Metrics.http.monitor(logger)
-	
-app.configure 'development', ->
-	console.log "Development Enviroment"
-	app.use express.errorHandler({ dumpExceptions: true, showStack: true })
-
-app.configure 'production', ->
-	console.log "Production Enviroment"
-	app.use express.errorHandler()
+app.use Metrics.http.monitor(logger)
 
 
 Metrics.inc "startup"
 Metrics.inc "startup"