when to run database migration
content
I have a web app with frontend and backend, with sqlite database. should i run database migration during build time (in Dockerfile), or during run time as part of the server setup?
- Do not migrate in the Dockerfile.
- run migration during run time
“Dockerfile runs at build time with no access to the real DB.”
- gpt
- don’t really understand why now, let’s not get too deep for now