feat: add no-build to ./nodebb setup

v1.18.x
Baris Usakli 5 years ago
parent 05bee6291d
commit 476f6717c4

@ -167,6 +167,7 @@ program
program program
.command('setup [config]') .command('setup [config]')
.description('Run the NodeBB setup script, or setup with an initial config') .description('Run the NodeBB setup script, or setup with an initial config')
.option('--no-build', 'Run setup without building assets')
.action(function (initConfig) { .action(function (initConfig) {
if (initConfig) { if (initConfig) {
try { try {

@ -33,7 +33,11 @@ function setup(initConfig) {
prestart.loadConfig(configFile); prestart.loadConfig(configFile);
next(); next();
}, },
build.buildAll, function (next) {
if (!nconf.get('no-build')) {
build.buildAll(next);
}
}
], function (err, data) { ], function (err, data) {
// Disregard build step data // Disregard build step data
data = data[0]; data = data[0];

Loading…
Cancel
Save