disable mongo bootstrap from build

This commit is contained in:
negue
2024-11-21 21:29:00 +01:00
parent 0ee61ee990
commit 16aed7fc5c

View File

@@ -51,7 +51,7 @@ gulp.task('build:prepare-mongo', async () => {
console.log('MongoDB data folder is missing, setting up.'); // eslint-disable-line no-console console.log('MongoDB data folder is missing, setting up.'); // eslint-disable-line no-console
// use run-rs without --keep, kill it as soon as the replica set starts // use run-rs without --keep, kill it as soon as the replica set starts
const runRsProcess = spawn('node', ['../scripts/start-local-mongo.mjs --build-db']); /* const runRsProcess = spawn('node', ['../scripts/start-local-mongo.mjs --build-db']);
for await (const chunk of runRsProcess.stdout) { for await (const chunk of runRsProcess.stdout) {
const stringChunk = chunk.toString(); const stringChunk = chunk.toString();
@@ -79,6 +79,8 @@ gulp.task('build:prepare-mongo', async () => {
throw new Error(`Error running run-rs: ${error}`); throw new Error(`Error running run-rs: ${error}`);
} }
*/
}); });
gulp.task('build:dev', gulp.series( gulp.task('build:dev', gulp.series(