What's te difference between kamal deploy and kamal redeploy? #1288
|
https://kamal-deploy.org/docs/commands/deploy/ Every time However if I do running But if it's the case how to normalize things? If there's no solution the only way I see is remove everything from server even the . |
Replies: 2 comments 1 reply
|
If you check out the source of Hopefully checking out the source of kamal helps you to identify why your environment is in such a weird state. What I remember from similar issues is that it might help to check the logs of the failed container and fix the root cause. Finding the container which failed can be done on the host by executing |
|
I ran into the same issue and only noticed after getting a disk-full alert on the VM. In my case, the problem was that I used the IP address in one place and the DNS hostname in another, even though both pointed to the same machine. Before: servers:
web:
- 17.172.224.47
accessories:
coturn:
image: coturn/coturn
host: example.germanywestcentral.cloudapp.azure.comAfter: servers:
web:
- example.germanywestcentral.cloudapp.azure.com
accessories:
coturn:
image: coturn/coturn
host: example.germanywestcentral.cloudapp.azure.comOnce I unified the host definition, the prune step stopped erroring and old images were cleaned up correctly. Hopefully this saves someone else some debugging time. |
kamal redeployonly updates the app, but does not setup the proxy.kamal deploydoes setup the proxy and update the app.kamal setupdoes what deploy does, but before doing so it also assures Docker is installed and accessories are booted.If you check out the source of
lib/kamal/cli/main.rbthen you get an idea of what is being done.Hopefully checking out the source of kamal helps you to identify why your environment is in such a weird state.
What I remember from similar issues is that it might help to check the logs of the failed container and fix the root cause. Finding the container which failed can be done on the host by executing
docker ps -a, then you can see the logs by executingd…