-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile.example
More file actions
32 lines (24 loc) · 742 Bytes
/
Makefile.example
File metadata and controls
32 lines (24 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
create-deps:
docker run --name validatorinfo -p "5432:5432" -e POSTGRES_DB=validatorinfo_db -e POSTGRES_USER=validatorinfo_user -e POSTGRES_PASSWORD=password -d "postgres:14-bullseye"
docker run -d --name redis -p "6379:6379" "redis:latest"
@sleep 5
destroy-deps:
docker rm -f validatorinfo
docker rm -f redis
deploy-migrations:
npx prisma migrate deploy
generate-client:
npx prisma generate
init-chains:
redis-cli flushall && npx tsx server/tools/init-chains.ts
generate-schema:
npx prisma migrate dev
start-indexer:
redis-cli flushall && npx tsx server/indexer.ts
update-params:
npx tsx server/update-chain-params.ts
start-db:
make destroy-deps
make create-deps
make deploy-migrations
make init-chains