You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen the discussions about migrations, basically recommending to run it as a separate kamal app exec command after the deploy went through, and then use feature flags to make both versions work against both schemas. Fine and all, yet a bit... cumbersome, especially for small teams.
Yet, as another idea, is there something stopping me doing it like so:
It's a bit weird in that the resulting docker command has now both restart option (--restart unless-stopped --restart "no"), but the latter one seems to win, yay.
The upside is, I think, migrations are applied at the start of the deployment cycle. This makes it easier overall, since you don't have to have feature flags, you just have to make sure old versions work with the new schema. That is easily done, as long as you're not removing fields from the schema.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey all
I've seen the discussions about migrations, basically recommending to run it as a separate
kamal app exec
command after the deploy went through, and then use feature flags to make both versions work against both schemas. Fine and all, yet a bit... cumbersome, especially for small teams.Yet, as another idea, is there something stopping me doing it like so:
It's a bit weird in that the resulting docker command has now both restart option (
--restart unless-stopped --restart "no"
), but the latter one seems to win, yay.The upside is, I think, migrations are applied at the start of the deployment cycle. This makes it easier overall, since you don't have to have feature flags, you just have to make sure old versions work with the new schema. That is easily done, as long as you're not removing fields from the schema.
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions