Looking for the best practice for running prisma migrations / prisma client generation during the CI/CD pipeline via CircleCI.
My main question is when / where should this be done being that fly postgres is hidden behind the firewall and not accessible outside of the fly network, so I am guessing running migrations from CircleCI is probably not the best solution.
Is there a way to run migrations as part of the deployment process within fly via Dockerfile or the builtins?
My main question is when / where should this be done being that fly postgres is hidden behind the firewall and not accessible outside of the fly network, so I am guessing running migrations from CircleCI is probably not the best solution.
The default Postgres app configuration does not come with a public-facing port, but this can be configured if required.
This was something I was exploring, this only runs “once” correct if we have multiple replicas in the deployment? Didn’t want migrations to be trying to run multiple times at the same time from different nodes.