This commit is contained in:
alexcos20 2023-05-19 17:12:44 +03:00
parent 3bfc1785d2
commit 4566ce37da
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,8 @@ echo "deploy subgraph is ${DEPLOY_SUBGRAPH}"
if [ "${DEPLOY_SUBGRAPH}" = "true" ]
then
[ -d /ocean-contracts/subgraph ] || mkdir /ocean-contracts/subgraph
rm -f /ocean-contracts/subgraph/ready
echo "Waiting for contracts to be deployed"
while [ ! -f "/ocean-contracts/artifacts/ready" ]; do
sleep 2
@ -13,5 +15,6 @@ then
export ADDRESS_FILE="/ocean-contracts/artifacts/address.json"
cd /usr/src/app/
npm run quickstart:barge
touch /ocean-contracts/subgraph/ready
fi
tail -f /dev/null