2023-04-19 14:04:21 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
graphql-engine serve &
|
2023-04-27 18:28:17 +03:00
|
|
|
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
|
2023-04-27 18:28:17 +03:00
|
|
|
echo "Waiting for Hasura to be ready..."
|
2023-04-19 14:04:21 +03:00
|
|
|
done
|
|
|
|
|
2023-04-27 18:28:17 +03:00
|
|
|
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
|