Browse Source

[Issue#415] Remove timeout on Deploy with Tar or Rsync tasks

nostromo
Andrés Montañez 7 years ago
parent
commit
5fa99c68f5
  1. 1
      CHANGELOG.md
  2. 2
      src/Task/BuiltIn/Deploy/ReleaseTask.php
  3. 2
      src/Task/BuiltIn/Deploy/RsyncTask.php

1
CHANGELOG.md

@ -4,6 +4,7 @@ CHANGELOG for 3.X
* 3.4.0 (2018-03-29) * 3.4.0 (2018-03-29)
* [Issue#380] Throw exception if log_dir is defined but directory doesn't exists * [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 * [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) * 3.3.0 (2017-07-22)

2
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); $cmdLinkRelease = sprintf('cd %s && ln -snf releases/%s current', $hostPath, $releaseId);
/** @var Process $process */ /** @var Process $process */
$process = $this->runtime->runRemoteCommand($cmdLinkRelease, false); $process = $this->runtime->runRemoteCommand($cmdLinkRelease, false, null);
return $process->isSuccessful(); return $process->isSuccessful();
} }
} }

2
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); $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 */ /** @var Process $process */
$process = $this->runtime->runLocalCommand($cmdRsync, 600); $process = $this->runtime->runLocalCommand($cmdRsync, null);
return $process->isSuccessful(); return $process->isSuccessful();
} }

Loading…
Cancel
Save