From bd0427006235b6614c78570607e89a892542184e Mon Sep 17 00:00:00 2001 From: Muhamad Surya Iksanudin Date: Tue, 17 Jan 2017 09:48:02 +0700 Subject: [PATCH] Try to remove deploy.lock when deploy is fail Try to remove deploy.lock when deploy is fail --- recipe/common.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipe/common.php b/recipe/common.php index a21927ef..bd2a343c 100644 --- a/recipe/common.php +++ b/recipe/common.php @@ -141,4 +141,6 @@ task('success', function () { */ task('deploy:failed', function () { })->setPrivate(); + onFailure('deploy', 'deploy:failed'); +before('deploy:failed', 'deploy:unlock');