-
Notifications
You must be signed in to change notification settings - Fork 23
Deployment and CI
Vyacheslav Matyukhin edited this page Sep 14, 2023
·
3 revisions
We manage our infrastructure with Terraform; configs are in a separate repo: https://github.com/quantified-uncertainty/ops
PostgresQL cluster is on Digital Ocean.
We have two databases:
- Production for the
main
branch. - Preview for everything else.
(These are for Squiggle Hub, other packages don't need a database.)
There are corresponding Github Actions for migrating database schemas:
"Prisma Migrate Preview DB" runs on PRs automatically.
"Prisma Migrate Production DB" should be invoked manually (TODO: will be automated after #2227)
- before the PR that needs a migration is merged, if the migration includes new tables or columns
- after the PR is merged and deployed, if the migration drops old tables or columns