I found that both of my Rails sites went down tonight without my
and I was getting 502 errors when I tried to visit these sites. Both
hosted by the same company. Fortunately, I was able to get the sites
up and running simply by restarting them.
Are there any services out there that I can use to automatically monitor
sites and send me an email and/or text message if my sites go down?
Additionally, would it be a good idea to set the cron jobs on my sites
automatically restart the sites on a regular basis? If so, how often
should my sites be restarted?