diff --git a/install/web.js b/install/web.js index 0c7fb2521f..557fcef862 100644 --- a/install/web.js +++ b/install/web.js @@ -30,7 +30,7 @@ web.install = function(port) { app.set('views', path.join(__dirname, '../src/views')); app.use(bodyParser.urlencoded({ extended: true - })); + })); async.parallel([compileLess, compileJS], function() { setupRoutes(); @@ -78,6 +78,8 @@ function install(req, res) { } } + winston.info('running nodebb setup with env ', process.env); + var child = require('child_process').fork('app', ['--setup'], { env: process.env }); @@ -107,10 +109,10 @@ function launch(req, res) { process.stdout.write(' "./nodebb stop" to stop the NodeBB server\n'); process.stdout.write(' "./nodebb log" to view server output\n'); process.stdout.write(' "./nodebb restart" to restart NodeBB\n'); - + child.unref(); process.exit(0); - + } function compileLess(callback) { diff --git a/src/install.js b/src/install.js index caafcbfacc..b8526b6521 100644 --- a/src/install.js +++ b/src/install.js @@ -488,6 +488,8 @@ function enableDefaultPlugins(next) { ], customDefaults = nconf.get('defaultPlugins'); + winston.info('[install/defaultPlugins] customDefaults', customDefaults); + if (customDefaults && customDefaults.length) { try { customDefaults = JSON.parse(customDefaults); @@ -502,6 +504,8 @@ function enableDefaultPlugins(next) { return array.indexOf(plugin) === index; }); + winston.info('[install/enableDefaultPlugins] activating default plugins', defaultEnabled); + var db = require('./database'); var order = defaultEnabled.map(function(plugin, index) { return index;