add toobusy back in

This commit is contained in:
Tyler Renelle
2013-01-21 10:11:17 -05:00
parent ab401cab6b
commit 9312cf7f78
+5 -5
View File
@@ -48,11 +48,11 @@ options =
mongo_store = new MongoStore {url: process.env.NODE_DB_URI}, ->
expressApp
# .use (req, res, next) ->
# if toobusy()
# return res.redirect 307, '/500.html'
# else
# next()
.use (req, res, next) ->
if toobusy()
return res.redirect 307, '/500.html'
else
next()
.use(express.favicon())
# Gzip static files and serve from memory