Deploy "Prod" - Gapminder/dollar-street-framework GitHub Wiki
The "prod" placed in GCP in "prod" project, also there placed "pre-prod".
Before deploying "prod" needs deleted "pre-prod" instance and cluster. Go to Cloudflare to find IP for pre-prod cluster and instance and delete it.
Deploy from local.
If puppeteer cluster already deployed and it works (http://[EXTERNAL_IP_PUPPETEER]/healthz
)
Can skip First of all deploy puppeteer step.
If EXTERNAL_IP_PUPPETEER = "CLUSTER_PUPPETEER_EXTERNAL_IP" in ./credentials/prod.ds.json. Can skip Update specific file with certain mode node step.
After deploying new instances to prod, should be switched prod URL to new instances in Cloudflare and pre-prod URL to previous instances. The previous instances don't delete for adding more stability and quickly switching to the previous version if it's needed.