Restart Rails on a shared host
Debugging Rails apps usually involves shutting down and restarting your server. Locally, this is a piece of cake: Ctrl-C. On a shared host, it can be tricky to shut down your server.
After a little bit of digging around in forums, I found out you can do it this way:
# pkill -9 -u `whoami` -f dispatch.fcgi
This of course presumes you have access to the command line. You don’t have that? Switch hosts.
Oh, and restarting? Just hit your app’s URL. You want to be the first one to do this anyway, so that it gets all the initial loading stuff out of the way.