I have several rails applications deployed by nginx passenger. I want those applications to be monitored by using monit. How can I monitor those applications using monit? Should I monitor nginx as well?
I have several rails applications deployed by nginx passenger. I want those applications to
Share
This is how I solved this. First, I added to application.rb:
and then I implemented the PidfileManager:
And then you just tell monit to monitor each instance using /var/tmp/rack.X.pid as a pidfile.