Replies: 1 comment
-
Hey there, sorry for the delayed response and the not-so-clear docs. We'll update them based on your feedback.
This was intended to mean that the same env var name should be used for storing the database url in Cloud and the docker-compose. In your case it seems to be
The metadata database is the database in which Hasura metadata will be stored. Cloud has its own metadata storage db hence the
Hasura metadata is the configuration Hasura needs to generate your GraphQL API, e,g. your list of tracked tables, permission rules, etc. It is stored in a dedicated db schema called Do let us know if you need any further clarifications. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello I am confused by the first step in this guide:
https://hasura.io/docs/latest/graphql/cloud/projects/environments.html#step-1-setup-local-development-of-hasura-with-docker
It explains:
OK -- so which one is that exactly? I have an extra one in my
docker-compose.yml
that does not exist on my cloud project...Do I set up both
PG_DATABASE_URL
to match cloud project?What about
HASURA_GRAPHQL_METADATA_DATABASE_URL
that comes with thedocker-compose.yml
?Does my
PG_DATABASE_URL
point to my live heroku db? But what about the meta url? Are they the same database? different? Huh?Is my meta local but pg database is remote?
Then, later on in the instructions at https://hasura.io/docs/latest/graphql/cloud/projects/environments.html#step-4-initialize-the-migration-files
It explains to get the schema from cloud:
My thinking is that I am defining my cloud project url here and pulling down everything from this command, and that means that my
PG_DATABASE_URL
should actually point to a local postgres and not the same one as my cloud ?So why does the
PG_DATABASE_URL
actually need to match cloud?Is my local hasura actually supposed to point to the same one as my cloud project? Or is it actually supposed to point to my local postgres I am setting up?
How is meta different from the actual data database and / or schema?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions