mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-03 14:20:33 +01:00
web install init
This commit is contained in:
10
app.js
10
app.js
@@ -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
11
install/web.js
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
var web = {};
|
||||
|
||||
web.install = function() {
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
module.exports = web;
|
||||
Reference in New Issue
Block a user