0

I now work with Hasura deployed on Heroku. I want to start to work locally with the same image. How can I do it?

idan ahal
  • 707
  • 8
  • 21

1 Answers1

1

Since All Hasura's data is stored on a PostgreSQL instance, we need to export the db from heroku to local db installation.

Here is one way to do it:

  • Step 1:

    Export all data from heroku's postgresql db first (read on instructions here)

  • Step 2:

    Create a local Hasura Instance by Docker (Instructions)

  • Step 3:

    Import the data back to the PostgreSQL running container that you've created on step 2. (Instructions)

and also export metadata from the heroku hasura instance (/console/settings/metadata-actions) and import it on the local installation. (to recover the relationship and other schema data)

Community
  • 1
  • 1
Tibebes. M
  • 6,940
  • 5
  • 15
  • 36