From b4ce85199dfdc183c81a464601f9df01f2bf5b87 Mon Sep 17 00:00:00 2001 From: elnebuloso Date: Thu, 31 Jul 2014 01:55:50 +0200 Subject: [PATCH] bugfix, deployment targz - the created tar only includes relative from the defined from - now it is possible to use absolute path in .mage/deployment/*.yaml from --- Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php b/Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php index eae35bb..21df62e 100644 --- a/Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php +++ b/Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php @@ -66,7 +66,7 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware $excludeCmd .= ' --exclude=' . $excludeFile; } - $command = 'tar cfz ' . $localTarGz . '.tar.gz ' . $excludeCmd . ' ' . $this->getConfig()->deployment('from'); + $command = 'tar cfz ' . $localTarGz . '.tar.gz ' . $excludeCmd . ' -C ' . $this->getConfig()->deployment('from') . ' .'; $result = $this->runCommandLocal($command); // Copy Tar Gz to Remote Host