-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
30 lines (20 loc) · 1.02 KB
/
justfile
File metadata and controls
30 lines (20 loc) · 1.02 KB
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
set dotenv-load
set dotenv-path := ".env"
deps:
- docker compose up -d
bc *args:
- docker exec bitcoin bitcoin-cli --rpcport=18443 --rpcuser=$BITCOIND_USER --rpcpassword=$BITCOIND_PASS -rpcwallet=$RPC_WALLET {{args}}
echo:
- echo $DATABASE_URL
node-one:
- cargo run --bin ddk-node -- --network regtest --esplora $ESPLORA_HOST --name node-one --postgres-url postgres://$POSTGRES_USER:$POSTGRES_PASS@$POSTGRES_HOST/ddk_one --log debug
node-two:
- cargo run --bin ddk-node -- --network regtest --esplora $ESPLORA_HOST --port 1777 --grpc 0.0.0.0:3031 --storage-dir ~/.ddk/node-two --name node-two --postgres-url postgres://$POSTGRES_USER:$POSTGRES_PASS@$POSTGRES_HOST/ddk_two --log debug
cli-one *args:
- cargo run --bin ddk-cli {{args}}
cli-two *args:
- cargo run --bin ddk-cli -- --server http://127.0.0.1:3031 {{args}}
up:
- DATABASE_URL=$DATABASE_URL sqlx migrate run --source ddk/src/storage/postgres/migrations
down:
- DATABASE_URL=$DATABASE_URL sqlx migrate revert --source ddk/src/storage/postgres/migrations