mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fail readiness check when shutting down
This commit is contained in:
parent
49c7bde799
commit
5b54d36b37
1 changed files with 4 additions and 1 deletions
|
@ -56,7 +56,10 @@ app.get "/", (req, res, next) ->
|
|||
res.send "real-time-sharelatex is alive"
|
||||
|
||||
app.get "/status", (req, res, next) ->
|
||||
res.send "real-time-sharelatex is alive"
|
||||
if shutDownInProgress
|
||||
res.send 503 # Service unavailable
|
||||
else
|
||||
res.send "real-time-sharelatex is alive"
|
||||
|
||||
app.get "/debug/events", (req, res, next) ->
|
||||
Settings.debugEvents = parseInt(req.query?.count,10) || 20
|
||||
|
|
Loading…
Reference in a new issue