From e2eeea2bf82f8e23c49feaabd1cce3b6882f6e12 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 19 Apr 2021 11:30:59 -0700 Subject: [PATCH] IO-314 Hasura new deploy instructions --- _reference/New Hasura Deployment.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 _reference/New Hasura Deployment.md diff --git a/_reference/New Hasura Deployment.md b/_reference/New Hasura Deployment.md new file mode 100644 index 000000000..0594f3d6a --- /dev/null +++ b/_reference/New Hasura Deployment.md @@ -0,0 +1,22 @@ +Postman Method: +POST https://db.imex.online/v1alpha1/pg_dump +Set x-hasura-admin-secret header. +Body is RAW JSON: +``` +{ + "opts": ["-O", "-x", "--schema-only", "--schema", "public"], + "clean_output": true +} +``` + +Save output. +Manually export hasura metadata on production. + +Go to new instance. +Run SQL + +``` +CREATE EXTENSION pg_trgm +``` +Run SQL from PG Dump +Import hasura metadata. \ No newline at end of file