Skip to content

Node.js based forum software built for the modern web

fixing issue where upgrade path only applies db fixes to default redis host and port

Julian Lam727da38fb6b4
diff --git a/app.js b/app.js
index 9b1be2a29a..5c7a39c8de 100644
--- a/app.js
+++ b/app.js
@@ -93,9 +93,8 @@ if (fs.existsSync(__dirname + '/config.json') && (!nconf.get('setup') && !nconf.
});
} else if (nconf.get('upgrade')) {
- var meta = require('./src/meta.js');
-
nconf.file({ file: __dirname + '/config.json'});
+ var meta = require('./src/meta.js');
meta.configs.init(function() {
require('./src/upgrade').upgrade();