mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 01:31:19 +00:00
remove app.configure
This commit is contained in:
parent
d9eac8dd8b
commit
ac990f2aba
1 changed files with 1 additions and 10 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue