run-dev-instance.sh 660 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. set -e
  3. script_path="$(dirname "${BASH_SOURCE[0]}")"
  4. # stop prior run and clear volumes
  5. docker-compose -f ${script_path}/compose/devchain-and-ipfs-node/docker-compose.yaml down -v
  6. # Run a development joystream-node chain and ipfs daemon in the background
  7. # Will use latest joystream/node images,
  8. # and will fetch from dockerhub if not found, so build them locally if
  9. # you need the version from the current branch
  10. docker-compose -f ${script_path}/compose/devchain-and-ipfs-node/docker-compose.yaml up -d
  11. # configure the dev chain
  12. yarn storage-cli dev-init && yarn storage-cli dev-check
  13. # Run the server
  14. DEBUG=* yarn colossus dev-server