Capistrano & Bash: ignore command exit status

前端 未结 7 588
礼貌的吻别
礼貌的吻别 2021-01-31 14:11

I\'m using Capistrano run a remote task. My task looks like this:

task :my_task do
  run \"my_command\"
end

My problem is that if my_comm

7条回答
  •  离开以前
    2021-01-31 15:06

    For Capistrano 3, you can (as suggested here) use the following:

    execute "some_command.sh", raise_on_non_zero_exit: false
    

提交回复
热议问题