-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forman makes $stdin appear to be a TTY. #99
Comments
Foreman uses the I'd be open to some investigation on how to change over to another open/fork mechanism. Ideally we could actually pull this functionality out into its own class/engine so that we could have swappable backends for JRuby (use Java threads instead of forking?) etc. I believe this is what is causing #94 as well. It appears that Any chance you'd be interested in helping out on some of this? |
@ddollar, it's not exactly my area of expertise, but it's a common problem |
I just pushed a prerelease of foreman that should fix this. Please try it and let me know if it works for you.
|
Given my trivial testing thus far David, it seems good to me. |
Output for me is now buffered - I can't tell when all my things have started, can't see the last request, etc, which is somewhat annoying. Is this now intended? |
Hey there, Check out https://github.com/ddollar/foreman/wiki/Missing-Output for instructions on how to make your process not buffer. Cheers, |
Cool, thanks :) |
I believe this is a bug, as some programs (
ruby-debug
) assume this means they can ask for user input, which isn't true when running underforeman
.Test Case:
The output for me, unfortunately is
true
. I believe this caused #58 (ruby-debug
related).It should be an easy fix, and would enable the proposed solution there to be modified to:
Ensuring we could have a remote debugger under
foreman
( and production, staging, etc ) - but an inline debugger inrake
and other runners.Note: I haven't checked if
ruby-debug
actually honors$stdin.tty?
, and I don't know if this is an easy fix forforeman
.I'm also certain that
ruby-deubg
isn't the only usecase for this.The text was updated successfully, but these errors were encountered: