In my production.log file, I’m only seeing errors and database queries,
etc.
How should I go about generating an access.log and error.log (similar
to apache). I’m interested in seeing the usual stats, request,
referer, host, user-agent.
Hmm, no, not mongrel, something like Apache, nginx, lighttp, etc.
These are your front-end http servers, and they proxy down into
Mongrel for running your Rails site.
which deployment book? i would be surprised if a book about deploying
ruby
on rails suggests that you run mongrel alone in production. most
resources
that I’ve seen suggest apache or nginx proxying to mongrel. often it is
proxying to a cluster of mongrels. for one reason, mongrel is slow at
serving static files. also another issue of running mongrel alone, is
that
a mongrel can only deal with one request at a time, so of there are any
tasks that are a little long, it will block other tasks from being run.
this is why people use load-balancers to proxy to mongrel. also, using
apache or nginx gives you the logs that you are looking for. nice.