Skip to content

Local Development and Staging Workflows with Hasura v2.0 #6746

Answered by tom2strobl
n2ctech asked this question in Question
Discussion options

You must be logged in to vote

A little late, but I had the same issue, so posting in case of others running into it as well:
You need to set the db connection within the console to environment variable instead of database url, then when you hasura metadata export there is no hardcoded db connection, from then on you simply supply a different connection to every instance through the env vars (in my case direct in https://cloud.hasura.io/project/< id >/env-vars).

Just make sure your hasura/metadata/databases/databases.yaml look something along the lines of this:

- name: default
  kind: postgres
  configuration:
    connection_info:
      database_url:
        from_env: HASURA_GRAPHQL_DATABASE_URL
      isolation_level: r…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by praveenweb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants