Setup list for any environment (DB, CMS, PAGES) - Gapminder/dollar-street-framework GitHub Wiki
- Deployment manager:
- MongoDB certified by Bitnami
- Resources: 2CPU
- Zone: europe-west4-a
- Disk size: 50Gb
- Standard Persistent Disk
*copy PASSWORD*
- Compute Engine - VM instances - Edit mongodb instance:
- stop instance
- add Network tag: mongodb
- add your ssh key
- fix internal IP
- add ReadWrite acces to Storage API
- start instance
- Compute Engine - VM instances - Add new instance * 2 (CMS + PAGES):
- Resources: 1CPU
- Zone: europe-west1-c
- Disk size: 50Gb
- Standard Persistent Disk
- allow http/https
- add Network tag: app
- add your ssh pub key
- generate ***.pem key beforehand (from existed ssh pub & private keys)
- VPC network - Firewall rules - Add for mongodb:
- ports: tcp:22; tcp:27017
- tags: mongodb
- VPC network - Firewall rules - Add for app:
- ports: tcp:3000; tcp:80; tcp:8080; tcp:3001
- tags: app
- VPC network - External IP addresses:
- mongodb external - static
- app external - static
- Mongobooster - Connection:
- Type: Direct Connection
- Server: mongodb://localhost:27017
- SSH Address: EXTERNAL mongodb IP
- SSH User name: your name from point 3 (last subpoint)
- SSH Auth mode: Private Key
- SSH Private Key: ***.pem
- Authentication Mode: Basic
- Authentication User name: root
- Authentication Password: COPIED PASSWORD FROM POINT 1 (last subpoint)
- Authentication Auth DB: admin
- Mongobooster - DB:
- restore DB
- create userDB with readWrite role to the restored DB
- Credentials ([email protected]:[path to your GitHub with credentials]):
- update specific file with certain MODE & NODE & commit
npm run prebuild:client
- Setup backups