twenty/infra/dev/hasura/entrypoint.sh
2023-04-27 17:28:04 +02:00

15 lines
361 B
Bash
Executable File

#!/bin/bash
graphql-engine serve &
while ! curl -s http://localhost:8080/healthz > /dev/null ; do
sleep 1
done
hasura deploy
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 &
wait