fail readiness check when shutting down

This commit is contained in:
Brian Gough 2019-08-13 10:41:35 +01:00
parent 49c7bde799
commit 5b54d36b37

View file

@ -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