Skip to content

Commit

Permalink
merge #682
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed May 19, 2023
1 parent 3bfc178 commit 4566ce3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ 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
done
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

0 comments on commit 4566ce3

Please # to comment.