Skip to content

Commit

Permalink
feat; add a pnpm stop command for stopping Hasura3 dev environment (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ryscheng authored Sep 27, 2024
1 parent 175a222 commit 1bb551d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/hasura3/.hasura/context.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions apps/hasura3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 1bb551d

Please sign in to comment.