fix: make sync-database-local work

also, use sync-database-local instead of sync-database when running
bootstrap.sh
This commit is contained in:
zkldi
2022-10-07 01:09:12 +01:00
parent d3cd2768d4
commit 18b0eac821
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -59,7 +59,7 @@ function syncDatabaseWithSeeds {
cd server
pnpm run sync-database
pnpm run sync-database-local
echo "Synced."
}
@@ -69,7 +69,6 @@ selfSignHTTPS
pnpmInstall
syncDatabaseWithSeeds
tput setaf 1
cat << EOF
+1 -1
View File
@@ -15,7 +15,7 @@
"start-no-build": "node -r ts-node/register -r tsconfig-paths/register js/server/src/main.js",
"runscoreworker": "node -r ts-node/register -r tsconfig-paths/register js/server/src/lib/score-import/worker/worker.js",
"sync-database": "ts-node src/scripts/sync-database",
"sync-database-local": "ts-node src/scripts/sync-database --localPath '../database-seeds'",
"sync-database-local": "ts-node src/scripts/sync-database --localPath '../database-seeds/collections'",
"recalc-everything": "ts-node src/scripts/state-sync/sync-state.ts"
},
"author": "zkldi",
+1 -1
View File
@@ -340,7 +340,7 @@ const logger = CreateLogCtx("Database Sync");
const program = new Command();
program.option("-l, --localPath <path/to/database-seeds>");
program.option("-l, --localPath <path/to/database-seeds/collections>");
program.parse(process.argv);
const options: {