Wednesday, 12 March 2008« Experimenting with MySQL spatial extensions | Main | Английски »
First, if you have the choice, ditch windows, not worth it. However, if you are like me and are forced to use windows for a project then your solution is a simple derivative of what you will find here.
I'm forced to work with a Windows server too and I was experimenting the same issue. Charlie put me on the right track and I solved it adding what follows at the beginning of
begin $stdout.write("checking $stdout -> ") $stdout.flush # really try to write! $stdout.write("OK\n") rescue $stdout.reopen('log/mongrel.log') $stderr.reopen('log/mongrel_err.log') end
$stderr are redirected only when IO#write raises an exception, it is effective only when Mongrel is running as a service and you still can launch it from a terminal or use a console without any problem.