2021-07-05 04:17:07 -07:00
|
|
|
# Wait for node to start
|
|
|
|
while ! /bin/netcat -z localhost 26657; do
|
|
|
|
sleep 1
|
|
|
|
done
|
2021-10-04 04:52:11 -07:00
|
|
|
|
2021-07-05 04:17:07 -07:00
|
|
|
# Wait for first block
|
|
|
|
while [ $(curl localhost:26657/status -ks | jq ".result.sync_info.latest_block_height|tonumber") -lt 1 ]; do
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
|
|
|
|
sleep 2
|
|
|
|
|
2021-10-04 04:52:11 -07:00
|
|
|
npm ci && node deploy.js
|