We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 828eacc + edd90d5 commit cfaa58fCopy full SHA for cfaa58f
lib/puma/plugin/tailwindcss.rb
@@ -8,7 +8,12 @@ def start(launcher)
8
@puma_pid = $$
9
@tailwind_pid = fork do
10
Thread.new { monitor_puma }
11
- system(*Tailwindcss::Commands.watch_command)
+ # Using IO.popen(command, 'r+') will avoid watch_command read from $stdin.
12
+ # If we use system(*command) instead, IRB and Debug can't read from $stdin
13
+ # correctly bacause some keystrokes will be taken by watch_command.
14
+ IO.popen(Tailwindcss::Commands.watch_command, 'r+') do |io|
15
+ IO.copy_stream(io, $stdout)
16
+ end
17
end
18
19
launcher.events.on_stopped { stop_tailwind }
0 commit comments