Kamal Deep Dive
summary
Follow a real deploy from laptop to server: Kamal CLI (Thor) translates commands into SSHKit calls, keeping Docker command arrays until net-ssh executes them, reusing pooled SSH connections and rescuing per-host errors; build uses Docker buildx with a remote buildkit/container builder and pushes to registries or a local registry via remote port forwarding; Kamal proxy receives docker exec registration, performs blue-green switches with health checks, buffered request handling and graceful draining via Go goroutines and channels, asset copying and simple lock directories.
AI-written summary · about
