View this site in English Ver este site em português

How to restart a rails or sinatra app on dreamhost

Hi guys, if you followed my last post about running sinatra on dreamhost, you may have gotten frustrated when you tried to update your code. Dreamhost just didn’t want to refresh it, right?

Well, in the past it seems that the process was quite exoteric. I’ve read you had to create some tmp/shutdown.txt file or something like that.

Well, looking at the dreamhost wiki about rails deployment, I found out that the process got simpler. All you have to do is:

$ killall -USR1 ruby1.8

If it doesn’t work (perhaps they’ve updated their ruby version), you should take a look at the running processes:

$ ps -e

ok? Enjoy

Leave Comment