In Mongrel, we are able to see any ruby debug code. After installing thin and doing thin start
. I don't see any debug code on the console window.
Is this nromal?
Are we supposed to use tail -f log/development.log
in a new console window to view the debug code?
Yes. The solution with tail is normal, and you should use it.
You could also try to start your server this way :
It shows your log, in Rails 3 at least.
You can use a Procfile with foreman:
Procfile
Example
The solution is to add a small code snippet in your
config.ru
file, and thin output all app logs to the console. You do not need totail
the log file, and it keeps log coloring intactDetails here: Thin server: ouput rails application logs to console, as 'rails s' does