mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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.event_loop?.monitor(logger)
|
||||||
Metrics.memory.monitor(logger)
|
Metrics.memory.monitor(logger)
|
||||||
|
|
||||||
app.configure ->
|
app.use Metrics.http.monitor(logger)
|
||||||
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()
|
|
||||||
|
|
||||||
Metrics.inc "startup"
|
Metrics.inc "startup"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue