Skip to content

The open alternative to Salesforce, designed for AI.

Implicitly start hasura console (#88)

Anders Borch00f0a364577c
diff --git a/infra/dev/Makefile b/infra/dev/Makefile
index e99b6f29a43..c663963f93e 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 3b4503acd79..6f57cd89b8f 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