Replies: 1 comment
|
I've used B sometimes - eg $ kamal build pull -d staging --version latest-staging
$ kamal app exec -d staging --version latest-staging --primary -i 'bin/rails db:migrate'I'm not sure what you mean by "In this method, we have problem with env. Because env on the remove server applying after deployment" - could you clarify? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In all my projects, I run db migration in entrypoints.
For not big db it's enough.
On this week, I migrate big project from directly update project on the server -> kamal.
And this scenario doesn't work well.
What happened?
deploy_timeout:100), docker restart container.And this unpredictable behavior stuck deployment process.
I see few ways how to resolve this problem:
A. Increasing
deploy_timeout, it is not good way.B Split phase of deployment to
kamal build,kamal app exec '<apply migration cmd>',kamal deploy --skip-pushIn this method, we have problem with env. Because env on the remove server applying after deployment.
H Apply via hook - never try this method.
What the best scenario to apply heavy migration while deploying applications?
All reactions