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

@@ -2,6 +2,7 @@ Postman Method:
POST https://db.imex.online/v1alpha1/pg_dump POST https://db.imex.online/v1alpha1/pg_dump
Set x-hasura-admin-secret header. Set x-hasura-admin-secret header.
Body is RAW JSON: Body is RAW JSON:
``` ```
{ {
"opts": ["-O", "-x", "--schema-only", "--schema", "public"], "opts": ["-O", "-x", "--schema-only", "--schema", "public"],
@@ -18,5 +19,6 @@ Run SQL
``` ```
CREATE EXTENSION pg_trgm CREATE EXTENSION pg_trgm
``` ```
Run SQL from PG Dump 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 7. Alter Nginx config
1. sudo nano /etc/nginx/sites-available/default 1. sudo nano /etc/nginx/sites-available/default
2. //Add Appropriate server names to the file. www. and non-www. 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_pass http://localhost:5000;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;