minus-squaresaucyloggins@lemmy.worldtoProgramming@programming.dev•[Discussion] Devs and Devops: if you have running containers in production, how are you upgrading those containers?linkfedilinkEnglisharrow-up6·1 year agoWe do migrations for schema on app startup (built into the app). Any general data changes are done outside the pipeline as a pre or post deployment step. Migrations on startup aren’t perfect, you have to be careful that it doesn’t take too long on startup. Honestly the pros outweighs the cons. You can fire up a new site/db without much effort which is something we do often. linkfedilink
We do migrations for schema on app startup (built into the app).
Any general data changes are done outside the pipeline as a pre or post deployment step.
Migrations on startup aren’t perfect, you have to be careful that it doesn’t take too long on startup.
Honestly the pros outweighs the cons. You can fire up a new site/db without much effort which is something we do often.