mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.34k stars 491 forks source link

Add flag to skip cleanup on failed deploy #683

Open lovro-bikic opened 2 years ago

lovro-bikic commented 2 years ago

Mina by default cleans up everything in the build path. This is okay for successful deploys, but it can be a problem for failed deploys because it doesn't allow inspection (e.g. if you want to ssh to the server to see what failed exactly).

Add a variable (maybe :skip_cleanup_on_fail) which when set to true will skip the cleanup. It should be false by default because we don't want to introduce a breaking change.