The very first steps to restore a Rails application after a crash:
- Check the logs:
tail -f myapp/log/production.logHopefully here will appear the error that generates the crash.
If nothing appear, even after refreshing, is because the application is not running, so usually is a fail on the mongrels. If in doubt is not a bad idea restart them anyway.
- Check for the mongrels for our app and kill/restart them.
ps aux | grep mongrel
rm log/mongrel.88*.pid
mongrel_rails cluster::start - If is not the mongrels, probably something related to the web server. Restart it.
nginx -t -c /etc/nginx/nginx.conf
sudo /etc/init.d/nginx restart
