Open ezekg opened 6 years ago
Related to #156.
Relevant: https://github.com/thiagopradi/octopus/issues/317 (might be an outdated Octopus issue).
Apparently you can fork Heroku apps still, just with a CLI add-on. Forking creates new databases (one for each "color" ENV var), but keeps the master set to the original database, which is what we want.
heroku fork --from keygen-sh --to keygen-sh-eu --region eu
See: https://devcenter.heroku.com/articles/app-migration#forking
We should do that for both APIs.
Use Cloudflare's geo-based load balancing to route between our US and EU apps (it can route to a hostname, i.e. a different Heroku app). Also will need to use octopus to add support for a follower database in the EU region (writes will still be done in the US - hopefully that's performant).
See: