卡皮斯特拉诺的run_locally不打印到控制台?



假设我的配方中有一个自定义任务:

task :custom_task1 do    
  run_locally "cap -S config=blah another_custom_task
end

task :another_custom_task do
  puts "hi"
end

然后,不会打印"嗨"。如何解决或克服这种情况?它不允许我使用任何命令行。

编辑:

为什么我不能使用记录器?Capistrano,默认情况下说得太多了 - 所以我有一个设置,将其记录器设置为只喊出重要的错误。所以不能使用 logger.info 或类似的东西。

尝试使用 Logger

logger.info "hi"

最新更新