The 10-Hour Journey to a 10-Second Solution: K8s Database Migrations
· 2 min read
TL;DR
# The simple solution we ended up with:
kubectl -n mercury port-forward svc/postgres 15432:5432
DATABASE_URL="postgresql://mercury:mercury_secure_password_123@localhost:15432/mercury" pnpm migration:up:mercury
