mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
remove app.configure
This commit is contained in:
@@ -16,16 +16,7 @@ Metrics.open_sockets.monitor(logger)
|
||||
Metrics.event_loop?.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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user