mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
rename heavyLoad to 500
This commit is contained in:
parent
be9c370d25
commit
a3e75da2ba
2 changed files with 5 additions and 5 deletions
|
|
@ -48,11 +48,11 @@ options =
|
||||||
|
|
||||||
mongo_store = new MongoStore {url: process.env.NODE_DB_URI}, ->
|
mongo_store = new MongoStore {url: process.env.NODE_DB_URI}, ->
|
||||||
expressApp
|
expressApp
|
||||||
.use (req, res, next) ->
|
# .use (req, res, next) ->
|
||||||
if toobusy()
|
# if toobusy()
|
||||||
return res.redirect 307, '/heavyLoad.html'
|
# return res.redirect 307, '/500.html'
|
||||||
else
|
# else
|
||||||
next()
|
# next()
|
||||||
|
|
||||||
.use(express.favicon())
|
.use(express.favicon())
|
||||||
# Gzip static files and serve from memory
|
# Gzip static files and serve from memory
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue