From 00f0a364577c89fb73afb33d9935c64b29ad3b17 Mon Sep 17 00:00:00 2001 From: Anders Borch Date: Thu, 27 Apr 2023 17:28:04 +0200 Subject: [PATCH] Implicitly start hasura console (#88) --- infra/dev/Makefile | 6 ------ infra/dev/hasura/entrypoint.sh | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) 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