Rails App Not Starting After Reboot?
It’s very rare that my server goes down without my knowledge. However, there are times when it will be rebooted by my provider. I have a script that automatically starts the Rails apps. The problem is that when my server rebooted without my knowledge, I was getting messages from people that my apps are not “available”.
After viewing the script, I was somewhat shocked and embarrassed that I forgot to delete “mongrel.pid” before starting the server. This file is located in “log” directory of each individual Rails app and must not be present when Mongrel starts. If it exists, then Mongrel won’t start because it thinks that another instance of app is running.
So, there you have it, always remember to brush your teeth and delete your pid files.
Comments
Leave a Reply
You must be logged in to post a comment.