class Spring::Server
def redirect_output
`spring rake -T | grep db` would hang forever because the server
keep the original FDs open which would break piping. (e.g.
We need to redirect STDOUT and STDERR, otherwise the server will
def redirect_output [STDOUT, STDERR].each { |stream| stream.reopen(env.log_file) } end