9z0b3t1c / capistrano-resque

Capistrano integration for Resque
MIT License
223 stars 144 forks source link

Add :resque_redirection option #82

Closed TylerRick closed 10 years ago

TylerRick commented 10 years ago

This worked for me to solve the Errno::EIO: Input/output error - <STDERR> error I was getting whenever my resque job tried to output to $stderr.

TylerRick commented 10 years ago

See also #81 and #65.

dmarkow commented 10 years ago

Thanks! I think the best solution might be somewhere in the middle of this (which requires the user to set the entire >> logfile 2>> logfile line) and #65 (which output to a fixed non-configurable log file).

Would you be able to update this to have something like a :resque_log_file option instead, and if it's present, the command will append to that specified file? If not, let me know and I can pull this in and make the change. Thank you!

TylerRick commented 10 years ago

That's fine with me. I've updated the pull request.

(I just didn't know if everyone wanted them both logged to the same file or if they wanted to append (>>) rather than replace (>). But I think those are reasonable defaults. :) )

dmarkow commented 10 years ago

Thank you! Merging this, and I'm going to go ahead and set a default log file of /dev/null since that has helped others with this situation.