Shift production to live reports env.

This commit is contained in:
Patrick Fic
2021-05-11 14:33:02 -07:00
parent 588c47b57a
commit 85c577b979
2 changed files with 10 additions and 8 deletions

View File

@@ -1,7 +1,8 @@
Postman Method:
POST https://db.imex.online/v1alpha1/pg_dump
Set x-hasura-admin-secret header.
Body is RAW JSON:
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"],
@@ -9,14 +10,15 @@ Body is RAW JSON:
}
```
Save output.
Manually export hasura metadata on production.
Save output.
Manually export hasura metadata on production.
Go to new instance.
Go to new instance.
Run SQL
```
CREATE EXTENSION pg_trgm
```
Run SQL from PG Dump
Import hasura metadata.
Import hasura metadata.

View File

@@ -47,7 +47,7 @@ Add the SSH key to the drop creation screen.
7. Alter Nginx config
1. sudo nano /etc/nginx/sites-available/default
2. //Add Appropriate server names to the file. www. and non-www.
3. Add the following inside the location of the server block:
3. Add the following inside the location of the server block: (Remove the 404 bit.)
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;