web install init

This commit is contained in:
psychobunny
2015-04-21 14:32:21 -04:00
parent a72501f3b4
commit 2dc20e690f
2 changed files with 15 additions and 6 deletions

10
app.js
View File

@@ -65,8 +65,10 @@ configExists = fs.existsSync(configFile);
if (!nconf.get('setup') && !nconf.get('install') && !nconf.get('upgrade') && !nconf.get('reset') && configExists) {
start();
} else if (nconf.get('setup') || nconf.get('install') || !configExists) {
} else if (nconf.get('setup') || nconf.get('install')) {
setup();
} else if (!configExists) {
require('./install/web').install();
} else if (nconf.get('upgrade')) {
upgrade();
} else if (nconf.get('reset')) {
@@ -219,11 +221,7 @@ function start() {
function setup() {
loadConfig();
if (nconf.get('setup')) {
winston.info('NodeBB Setup Triggered via Command Line');
} else {
winston.warn('Configuration not found, starting NodeBB setup');
}
winston.info('NodeBB Setup Triggered via Command Line');
var install = require('./src/install');

11
install/web.js Normal file
View File

@@ -0,0 +1,11 @@
"use strict";
var web = {};
web.install = function() {
};
module.exports = web;