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
.command('setup [config]')
.description('Run the NodeBB setup script, or setup with an initial config')
.option('--no-build', 'Run setup without building assets')
.action(function (initConfig) {
if (initConfig) {
try {

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

Loading…
Cancel
Save