chore(mongodb): update local dev MongoDB versions

This commit is contained in:
Kalista Payne
2024-10-03 15:49:28 -05:00
parent af17930314
commit 1526c3fd10
3 changed files with 5 additions and 5 deletions

View File

@@ -128,7 +128,7 @@ jobs:
strategy: strategy:
matrix: matrix:
node-version: [21.x] node-version: [21.x]
mongodb-version: [4.2] mongodb-version: [7.0]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -159,7 +159,7 @@ jobs:
strategy: strategy:
matrix: matrix:
node-version: [21.x] node-version: [21.x]
mongodb-version: [4.2] mongodb-version: [7.0]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -190,7 +190,7 @@ jobs:
strategy: strategy:
matrix: matrix:
node-version: [21.x] node-version: [21.x]
mongodb-version: [4.2] mongodb-version: [7.0]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:

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('run-rs', ['-v', '4.1.1', '-l', 'ubuntu1804', '--dbpath', 'mongodb-data', '--number', '1', '--quiet']); const runRsProcess = spawn('run-rs', ['-v', '7.0.14', '-l', 'ubuntu2204', '--dbpath', 'mongodb-data', '--number', '1', '--quiet']);
for await (const chunk of runRsProcess.stdout) { for await (const chunk of runRsProcess.stdout) {
const stringChunk = chunk.toString(); const stringChunk = chunk.toString();

View File

@@ -109,7 +109,7 @@
"start": "gulp nodemon", "start": "gulp nodemon",
"start:simple": "node ./website/server/index.js", "start:simple": "node ./website/server/index.js",
"debug": "gulp nodemon --inspect", "debug": "gulp nodemon --inspect",
"mongo:dev": "run-rs -v 5.0.23 -l ubuntu1804 --keep --dbpath mongodb-data --number 1 --quiet", "mongo:dev": "run-rs -v 7.0.14 -l ubuntu2204 --keep --dbpath mongodb-data --number 1 --quiet",
"postinstall": "git config --global url.\"https://\".insteadOf git:// && gulp build && cd website/client && npm install", "postinstall": "git config --global url.\"https://\".insteadOf git:// && gulp build && cd website/client && npm install",
"apidoc": "gulp apidoc", "apidoc": "gulp apidoc",
"heroku-postbuild": ".heroku/report_deploy.sh" "heroku-postbuild": ".heroku/report_deploy.sh"