From 5fa99c68f579748ac206d06905dba8cf8419547d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Monta=C3=B1ez?= Date: Thu, 29 Mar 2018 18:33:40 -0300 Subject: [PATCH] [Issue#415] Remove timeout on Deploy with Tar or Rsync tasks --- CHANGELOG.md | 1 + src/Task/BuiltIn/Deploy/ReleaseTask.php | 2 +- src/Task/BuiltIn/Deploy/RsyncTask.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f35c40..785091b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ CHANGELOG for 3.X * 3.4.0 (2018-03-29) * [Issue#380] Throw exception if log_dir is defined but directory doesn't exists * [BUGFIX] [Issue#405] Malformed ssh command when defining host:port notation + * [Issue#415] Remove timeout on Deploy with Tar or Rsync tasks * 3.3.0 (2017-07-22) diff --git a/src/Task/BuiltIn/Deploy/ReleaseTask.php b/src/Task/BuiltIn/Deploy/ReleaseTask.php index ad0dd00..ab767f0 100644 --- a/src/Task/BuiltIn/Deploy/ReleaseTask.php +++ b/src/Task/BuiltIn/Deploy/ReleaseTask.php @@ -44,7 +44,7 @@ class ReleaseTask extends AbstractTask implements ExecuteOnRollbackInterface $cmdLinkRelease = sprintf('cd %s && ln -snf releases/%s current', $hostPath, $releaseId); /** @var Process $process */ - $process = $this->runtime->runRemoteCommand($cmdLinkRelease, false); + $process = $this->runtime->runRemoteCommand($cmdLinkRelease, false, null); return $process->isSuccessful(); } } diff --git a/src/Task/BuiltIn/Deploy/RsyncTask.php b/src/Task/BuiltIn/Deploy/RsyncTask.php index b3ce7f9..1310a5a 100644 --- a/src/Task/BuiltIn/Deploy/RsyncTask.php +++ b/src/Task/BuiltIn/Deploy/RsyncTask.php @@ -49,7 +49,7 @@ class RsyncTask extends AbstractTask $cmdRsync = sprintf('rsync -e "ssh -p %d %s" %s %s %s %s@%s:%s', $sshConfig['port'], $sshConfig['flags'], $flags, $excludes, $from, $user, $host, $targetDir); /** @var Process $process */ - $process = $this->runtime->runLocalCommand($cmdRsync, 600); + $process = $this->runtime->runLocalCommand($cmdRsync, null); return $process->isSuccessful(); }