twenty/infra/dev/hasura/entrypoint.sh

19 lines
454 B
Bash
Raw Normal View History

2023-04-19 14:04:21 +03:00
#!/bin/bash
graphql-engine serve &
echo "Waiting for Hasura to be ready..."
2023-04-19 14:04:21 +03:00
while ! curl -s http://localhost:8080/healthz > /dev/null ; do
sleep 1
echo "Waiting for Hasura to be ready..."
2023-04-19 14:04:21 +03:00
done
sleep 1
2023-04-19 14:04:21 +03:00
hasura deploy
2023-04-27 18:28:04 +03:00
socat TCP-LISTEN:9695,fork,reuseaddr,bind=twenty-hasura TCP:127.0.0.1:9695 &
socat TCP-LISTEN:9693,fork,reuseaddr,bind=twenty-hasura TCP:127.0.0.1:9693 &
hasura console --log-level DEBUG --address "127.0.0.1" --no-browser &
2023-04-19 14:04:21 +03:00
wait