From 1c9c9908c5a3c02bd0725f816b898fa68f85791c Mon Sep 17 00:00:00 2001 From: SabreCat Date: Wed, 6 Dec 2023 13:22:11 -0600 Subject: [PATCH] fix(dev): use working version of MongoDB on run-rs https://github.com/vkarpov15/run-rs/issues/47 --- gulp/gulp-build.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gulp/gulp-build.js b/gulp/gulp-build.js index 3aa106b8fc..11f91b454f 100644 --- a/gulp/gulp-build.js +++ b/gulp/gulp-build.js @@ -51,7 +51,7 @@ gulp.task('build:prepare-mongo', async () => { 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 - const runRsProcess = spawn('run-rs', ['-v', '4.2.8', '-l', 'ubuntu1804', '--dbpath', 'mongodb-data', '--number', '1', '--quiet']); + const runRsProcess = spawn('run-rs', ['-v', '4.1.1', '-l', 'ubuntu1804', '--dbpath', 'mongodb-data', '--number', '1', '--quiet']); for await (const chunk of runRsProcess.stdout) { const stringChunk = chunk.toString(); diff --git a/package.json b/package.json index f2cea6e173..bcb1f6298c 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "client:unit": "cd website/client && npm run test:unit", "start": "gulp nodemon", "debug": "gulp nodemon --inspect", - "mongo:dev": "run-rs -v 4.2.8 -l ubuntu1804 --keep --dbpath mongodb-data --number 1 --quiet", + "mongo:dev": "run-rs -v 4.1.1 -l ubuntu1804 --keep --dbpath mongodb-data --number 1 --quiet", "postinstall": "git config --global url.\"https://\".insteadOf git:// && gulp build && cd website/client && npm install", "apidoc": "gulp apidoc" },