我想在deploy / before_bundle.rb挂钩中添加一些消息,以便在部署时将更多详细信息输出到命令行。这可能吗?
答案 0 :(得分:1)
你试过了吗?
run "echo 'this will make it to the terminal'"
我只是猜测那可行。
答案 1 :(得分:1)
它只是Ruby所以puts
很好
puts "About to run a command"
run! "/bin/some/command"
puts "Finished"
# Sometimes the order seems off so try
$stderr.puts "About to run a command"
$stderr.flush