Great writeup.
How do you handle database migrations when using an otherwise automated CI/CD flow with gradual deployment?
How do you handle database migrations when using an otherwise automated CI/CD flow with gradual deployment?
python manage.py migrate
on pod startup. If there are no changes, it'll do nothing. If there are changes, it'll do the migration.Here are some migration libraries:
is it even possible to do blue/green deploy if your schema changes radically?
Here's a really good guide on how to do this - https://docs.gitlab.com/ee/development/avoiding_downtime_in_...