Automating Tailwind Builds with Kamal Post-Deploy Hooks

I was recently working on a Sinatra-based web app. Some backend pages used Tailwind CSS, so I had to compile Tailwind assets after every change. I was deploying the API with Kamal, and every time I deployed, I had to run the Tailwind build command by hand: bundle exec rake tailwind:build That got old pretty fast, especially when I was deploying often during development. Automating with Post-Deploy Hooks I wanted to automate this so Tailwind assets would build after every deployment. After digging a bit, I found post-deploy hooks in Kamal. ...

January 5, 2026 · Mausam Pun