Node.js based forum software built for the modern web
Successful web installer now doesn't show 503
Julian Lam3a520cdfbf25
diff --git a/package.json b/package.jsonindex 419c655c0d..cd19e19b81 100644--- a/package.json+++ b/package.json@@ -49,7 +49,7 @@"nodebb-rewards-essentials": "0.0.6","nodebb-theme-lavender": "3.0.1","nodebb-theme-persona": "4.0.38",- "nodebb-theme-vanilla": "5.0.14",+ "nodebb-theme-vanilla": "5.0.15","nodebb-widget-essentials": "2.0.5","nodemailer": "0.7.1","npm": "^2.1.4",diff --git a/public/src/installer/install.js b/public/src/installer/install.jsindex 56645f0301..f7224fb71a 100644--- a/public/src/installer/install.js+++ b/public/src/installer/install.js@@ -115,7 +115,7 @@ $('document').ready(function() {$.post('/launch', function() {setInterval(function() {- $.get('/admin', function(data) {+ $.get('/admin').done(function(data) {window.location = 'admin';});}, 750);diff --git a/src/middleware/middleware.js b/src/middleware/middleware.jsindex e2c5747ab6..059e2229d0 100644--- a/src/middleware/middleware.js+++ b/src/middleware/middleware.js@@ -222,7 +222,7 @@ middleware.privateUploads = function(req, res, next) {middleware.busyCheck = function(req, res, next) {if (global.env === 'production' && (!meta.config.hasOwnProperty('eventLoopCheckEnabled') || parseInt(meta.config.eventLoopCheckEnabled, 10) === 1) && toobusy()) {- res.type('text/html').sendFile(path.join(__dirname, '../../public/503.html'));+ res.status(503).type('text/html').sendFile(path.join(__dirname, '../../public/503.html'));} else {next();}