mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
f04fe156ac
* refactor contracts usage * add docker support for barge * add tests
18 lines
433 B
Bash
Executable File
18 lines
433 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# default to true in case it is not set
|
|
DEPLOY_SUBGRAPH="${DEPLOY_SUBGRAPH:-true}"
|
|
echo "deploy subgraph is ${DEPLOY_SUBGRAPH}"
|
|
|
|
if [ "${DEPLOY_SUBGRAPH}" = "true" ]
|
|
then
|
|
echo "Waiting for contracts to be deployed"
|
|
while [ ! -f "/ocean-contracts/artifacts/ready" ]; do
|
|
sleep 2
|
|
done
|
|
export ADDRESS_FILE="/ocean-contracts/artifacts/address.json"
|
|
/usr/src/app/
|
|
npm run quickstart:barge
|
|
fi
|
|
tail -f /dev/null
|