I have found that at the end of the day closing all open apps on my computer is a great to signal that I am done for the day. It’s easy enough. Alfred has a command for Quit All Apps. Launching that shuts everything down.
The problem is that it will leave any local web servers for Rails apps in a weird state where starting a new Rails server the next day will error out because one is already running on that port.
In the past I have a done a couple of things. Using Activity Monitor to find and kill all Ruby processes works. So does using
ps aux and
grep to find Ruby processes and kill them one by one. But recently I’ve found the best yet.
pkill ruby will kill them all with one command. Super useful and a great time saver.
If you enjoyed reading this and would like to know when the next article is posted, please enter your name and email address below. Nothing spammy. Ever. And you can unsubscribe at any time. Thank you in advance!