Re:The architecture behind a one-person tech startup
by kparaju on Thursday April 08, 2021 @12:58PM
(#26741142)
You could probably do something like (for django):
on pod startup. If there are no changes, it'll do nothing. If there are changes, it'll do the migration.
[ Parent
| on HN ]
Re:The architecture behind a one-person tech startup
by ogjunkyard on Thursday April 08, 2021 @02:36PM
(#26742172)
Yeah, it's basically this. I'm running this as an initContainer for my K8s-based deployments. Took me a bit to get everything going, but my stack is pretty much similar to OP's article, although not quite as advanced in the automated-deployment of containers and monitoring. I'm not at a position where usage needs heavy monitoring because I'm still in the pre-launch phase of things and I'm using this side project to learn stuff I've yet to get experience with at multiple companies.