mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-22 21:01:15 +02:00
feat: add no-build to ./nodebb setup
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user