1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
commons/client/scripts/docker-entrypoint.sh

12 lines
341 B
Bash
Raw Normal View History

2019-04-04 11:30:31 +02:00
#!/bin/sh
if [ "${LOCAL_CONTRACTS}" = "true" ]; then
echo "Waiting for contracts to be generated..."
while [ ! -f "/app/frontend/node_modules/@oceanprotocol/keeper-contracts/artifacts/ready" ]; do
sleep 2
done
fi
2019-04-05 13:10:50 +02:00
npm run build
2019-04-04 11:30:31 +02:00
echo "Starting Commons..."
serve -l tcp://"${LISTEN_ADDRESS}":"${LISTEN_PORT}" -s /app/frontend/build/