Skip to content

Commit

Permalink
Fix restore-tvl script (l2beat#5716)
Browse files Browse the repository at this point in the history
  • Loading branch information
antooni authored Nov 5, 2024
1 parent ed92d9d commit fa5cc30
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"update-diff-history": "ts-node --transpile-only scripts/updateDiffHistory.ts",
"refresh-discovery": "ts-node --transpile-only scripts/refreshDiscovery.ts",
"analyze-project": "ts-node --transpile-only scripts/analyzeProject.ts",
"restore-tvl": "cd ./scripts/tvl-restore && ./tvl-restore.sh && cd -",
"restore-tvl": "pnpm --filter ../database restore-tvl",
"db:inspect": "pnpm prisma studio",
"dev": "pnpm build:dependencies && pnpm start:dev"
},
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"lint:fix": "biome check --formatter-enabled=false --write .",
"lint": "biome check --formatter-enabled=false .",
"test": "./scripts/run_tests.sh",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"restore-tvl": "cd ./scripts/tvl-restore && ./tvl-restore.sh && cd -"
},
"dependencies": {
"@l2beat/backend-tools": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## How to use

1. Change directory to `backend\scripts\tvl-restore`
1. Change directory to `database\scripts\tvl-restore`
2. Create .env & set variables
> ⚠️ **Use readonly credential for remote**: Be very careful here!
```
Expand All @@ -17,4 +17,4 @@ DEV_REMOTE_DB_URL_READ_ONLY=
```
./tvl-restore.sh
```
4. There is also command in the backend `pnpm tvl-restore`
4. There is also command in the backend `pnpm tvl-restore`

0 comments on commit fa5cc30

Please sign in to comment.