From 1bb551dd76594db5573c009dd86cfe1ef384d0c6 Mon Sep 17 00:00:00 2001 From: Raymond Cheng Date: Fri, 27 Sep 2024 14:48:14 -0700 Subject: [PATCH] feat; add a `pnpm stop` command for stopping Hasura3 dev environment (#2262) --- apps/hasura3/.hasura/context.yaml | 3 +++ apps/hasura3/package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/apps/hasura3/.hasura/context.yaml b/apps/hasura3/.hasura/context.yaml index 9b8f50a50..70eaadde2 100644 --- a/apps/hasura3/.hasura/context.yaml +++ b/apps/hasura3/.hasura/context.yaml @@ -13,3 +13,6 @@ definition: docker-start: bash: HASURA_DDN_PAT=$(ddn auth print-pat) docker compose -f compose.yaml --env-file .env up --build --pull always -d powershell: $Env:HASURA_DDN_PAT = ddn auth print-pat; docker compose -f compose.yaml --env-file .env up --build --pull always -d + docker-stop: + bash: docker compose -f compose.yaml down + powershell: docker compose -f compose.yaml down diff --git a/apps/hasura3/package.json b/apps/hasura3/package.json index 1ee61998e..16cc8f078 100644 --- a/apps/hasura3/package.json +++ b/apps/hasura3/package.json @@ -27,6 +27,7 @@ "metadata:build:local": "ddn supergraph build local", "metadata:deploy:cloud": "ddn supergraph build create", "start": "ddn run docker-start", + "stop": "ddn run docker-stop", "sync": "pnpm metadata:introspect", "deploy": "pnpm metadata:deploy:cloud" },