From 7e4369859a0125b2e1bb3fbda0eccb825b3f2336 Mon Sep 17 00:00:00 2001 From: Jelle Sebreghts Date: Fri, 10 Mar 2017 09:05:11 +0100 Subject: [PATCH] Do not remove all releases on rollback! --- src/AbstractRoboFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AbstractRoboFile.php b/src/AbstractRoboFile.php index b44c825..4cab55a 100644 --- a/src/AbstractRoboFile.php +++ b/src/AbstractRoboFile.php @@ -107,7 +107,7 @@ protected function deployTask( $collection->rollback( $this->taskSsh($server, $auth) ->remoteDirectory($currentProjectRoot, true) - ->exec('rm -rf ' . $remote['releasesdir']) + ->exec('rm -rf ' . $releaseDir) ); foreach ($remote['symlinks'] as $link) { $collection->taskSsh($server, $auth)