too busy check on prod

v1.18.x
barisusakli 9 years ago
parent 628cecdd36
commit 016aef1716

@ -221,7 +221,7 @@ middleware.privateUploads = function(req, res, next) {
};
middleware.busyCheck = function(req, res, next) {
if (toobusy()) {
if (global.env === 'production' && toobusy()) {
res.type('text/html').sendFile(path.join(__dirname, '../../public/503.html'));
} else {
next();

Loading…
Cancel
Save