kratos icon indicating copy to clipboard operation
kratos copied to clipboard

Provide an option to run migrations before startup for the kratos serve command for single instance setups

Open prajaybasu opened this issue 3 years ago • 0 comments

Preflight checklist

Describe your problem

I have a simple single instance setup of kratos and right now I have to run the kratos migrate command in my deployment pipeline (which also requires giving IP access to the database outside of the cloud) before a deployment.

Unfortunately, the way my apps are hosted (Azure Container Apps), I have not found a way to easily run the migrate command on startup in a reliable manner.

Describe your ideal solution

I would like a CLI option in the serve flag to auto run the migrate command on startup and also provide a startup health check so that the readiness probe does not cause a failure restart loop.

Workarounds or alternatives

None

Version

0.10.1

Additional Context

No response

prajaybasu avatar Sep 08 '22 13:09 prajaybasu