mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-12 17:28:31 +03:00
fix: make sync-database-local work
also, use sync-database-local instead of sync-database when running bootstrap.sh
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user