run-dev-chain.sh 583 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. set -e
  3. SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
  4. cd $SCRIPT_PATH
  5. source features.sh
  6. export WASM_BUILD_TOOLCHAIN=nightly-2021-02-20
  7. # Build release binary
  8. cargo +nightly-2021-02-20 build --release --features "${FEATURES}"
  9. # Purge existing local chain
  10. yes | cargo +nightly-2021-02-20 run --release --features "${FEATURES}" -- purge-chain --dev
  11. # Run local development chain -
  12. # No need to specify `-p joystream-node` it is the default bin crate in the cargo workspace
  13. cargo +nightly-2021-02-20 run --release --features "${FEATURES}" -- --dev --log runtime