diff --git a/infra/dev/Makefile b/infra/dev/Makefile index e99b6f29a..c663963f9 100644 --- a/infra/dev/Makefile +++ b/infra/dev/Makefile @@ -38,9 +38,3 @@ hasura-logs: ## hasura-sh: ## @docker-compose exec twenty-hasura sh - -hasura-console: ## - @docker-compose exec twenty-hasura bash -c " \ - 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 || exit 1" \ No newline at end of file diff --git a/infra/dev/hasura/entrypoint.sh b/infra/dev/hasura/entrypoint.sh index 3b4503acd..6f57cd89b 100755 --- a/infra/dev/hasura/entrypoint.sh +++ b/infra/dev/hasura/entrypoint.sh @@ -8,4 +8,8 @@ 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 \ No newline at end of file