I'm setting up a mini deploy system with Ruby and Sinatra and Shell scripts, and when I trigger a deploy script I'd like ruby to continue to echo the output from the following:
post '/' do
`/home/deploy/deploy.sh`
end
How can I ensure that Ruby will echo the output and send a chunked response (so that the content can continue to load)?
Thanks!
You have two distinct problems here:
IO.popen.stream. (See also this question.)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With