Michael Anhari

Restart your Rails server with less ceremony

A top down view of person’s shoes standing in front of the words “START HERE” spray painted onto the pavement

Another (very) quick one today! For years I would stop and start my Rails server after making changes like bundling a new gem. Until I discovered that Rails ships with a command for making this easier!

bin/rails restart

This works by doing touch tmp/restart.txt under the hood. I think spring watches this file and reboots the application when it's been changed.

Newsletter

I'm working on sending out a weekly newsletter. I'll make it as easy as possible to unsubscribe at any time.