Browse Source

start.sh: load .env and export to be used in init chain scenario

Mokhtar Naamani 3 years ago
parent
commit
28bc063431
1 changed files with 4 additions and 0 deletions
  1. 4 0
      start.sh

+ 4 - 0
start.sh

@@ -27,6 +27,10 @@ docker-compose up -d joystream-node
 
 ## Init the chain with some state
 if [[ $SKIP_CHAIN_SETUP != 'true' ]]; then
+  set -a
+  . ./.env
+  set +a
+
   export SKIP_MOCK_CONTENT=true
   export SKIP_QUERY_NODE_CHECKS=true
   HOST_IP=$(tests/network-tests/get-host-ip.sh)