Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Ruby、Sinatra 和 Shell 脚本设置一个小型部署系统,当我触发部署脚本时,我希望 ruby 继续回显以下输出:
post '/' do `/home/deploy/deploy.sh` end
如何确保 Ruby 将回显输出并发送分块响应(以便内容可以继续加载)?
谢谢!
您在这里有两个明显的问题:
IO.popen
stream