Shift production to live reports env.
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
Postman Method:
|
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"],
|
||||||
@@ -9,14 +10,15 @@ Body is RAW JSON:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Save output.
|
Save output.
|
||||||
Manually export hasura metadata on production.
|
Manually export hasura metadata on production.
|
||||||
|
|
||||||
Go to new instance.
|
Go to new instance.
|
||||||
Run SQL
|
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.
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user