Automating Tailwind Builds with Kamal Post-Deploy Hooks
I was recently working on a small Sinatra application that used Tailwind CSS for a few internal pages. The application itself was deployed using Kamal, and the deployment process was pretty smooth. The only annoying part was that after every deployment, I had to SSH into the server and run: bundle exec rake tailwind:build It isn’t a difficult command to run. The problem is remembering to run it. After forgetting a couple of times and wondering why my UI changes weren’t showing up, I figured this was exactly the kind of repetitive task that should be automated. ...