fix: specify the database to restore dump into

This commit is contained in:
Yuanhai He
2023-05-24 00:41:08 +08:00
committed by GitHub
parent 6db86d5d00
commit c3fa472e24

View File

@@ -14,4 +14,4 @@ curl -o postgresql/latest.dump https://archive.hiro.so/mainnet/stacks-blockchain
docker-compose up -d stacks-blockchain-postgres
WAIT_HOSTS='127.0.0.1:5432' ./wait
docker exec -it stacks_postgres pg_restore -j 16 -Upostgres -v -C /var/lib/postgresql/latest.dump
docker exec -it stacks_postgres pg_restore -j 16 -Upostgres -v -C -d stacks_blockchain_api /var/lib/postgresql/latest.dump