deploy.sh 335 B

12345678910111213141516
  1. # Wait for node to start
  2. while ! /bin/netcat -z localhost 26657; do
  3. sleep 1
  4. done
  5. # Wait for first block
  6. while [ $(curl localhost:26657/status -ks | jq ".result.sync_info.latest_block_height|tonumber") -lt 1 ]; do
  7. sleep 1
  8. done
  9. sleep 2
  10. npm ci && node deploy.js
  11. echo "Going to sleep, interrupt if running manually"
  12. sleep infinity