feat: remove cli pass

This commit is contained in:
Naramsim 2024-01-09 23:17:57 +01:00
parent c991adfd82
commit 17f0c075ce
2 changed files with 5 additions and 5 deletions

View file

@ -101,11 +101,11 @@ sync-to-veekun: pull pull-veekun # Copy data from this repository to ../pokedex
# read-env-file: # Exports ./.env into shell environment variables # read-env-file: # Exports ./.env into shell environment variables
# export `egrep -v '^#' .env | xargs` # export `egrep -v '^#' .env | xargs`
hasura-export: # Export Hasura configuration hasura-export: # Export Hasura configuration, be sure to have set HASURA_GRAPHQL_ADMIN_SECRET
hasura md export --project graphql --admin-secret ${HASURA_GRAPHQL_ADMIN_SECRET} hasura md export --project graphql
hasura-apply: # Apply local Hasura configuration hasura-apply: # Apply local Hasura configuration, be sure to have set HASURA_GRAPHQL_ADMIN_SECRET
hasura md apply --project graphql --admin-secret ${HASURA_GRAPHQL_ADMIN_SECRET} hasura md apply --project graphql
hasura-get-anon-schema: # Dumps GraphQL schema hasura-get-anon-schema: # Dumps GraphQL schema
gq http://localhost:8080/v1/graphql --introspect > graphql/schema.graphql gq http://localhost:8080/v1/graphql --introspect > graphql/schema.graphql

View file

@ -87,7 +87,7 @@ When you start PokéAPI with the above docker-compose setup, an [Hasura Engine](
```sh ```sh
# hasura cli needs to be installed and available in your $PATH: https://hasura.io/docs/latest/graphql/core/hasura-cli/install-hasura-cli.html # hasura cli needs to be installed and available in your $PATH: https://hasura.io/docs/latest/graphql/core/hasura-cli/install-hasura-cli.html
# hasura cli's version has to be v2.0.8 # hasura cli's version has to greater than v2.0.8
make hasura-apply make hasura-apply
``` ```