Browse Source

Rollback directory should include deployment:to config variable

1.0
Jérémy Huet 10 years ago
parent
commit
d25d015356
  1. 4
      Mage/Task/BuiltIn/Releases/RollbackTask.php

4
Mage/Task/BuiltIn/Releases/RollbackTask.php

@ -51,6 +51,10 @@ class RollbackTask extends AbstractTask implements IsReleaseAware
$releasesDirectory = $this->getConfig()->release('directory', 'releases'); $releasesDirectory = $this->getConfig()->release('directory', 'releases');
$symlink = $this->getConfig()->release('symlink', 'current'); $symlink = $this->getConfig()->release('symlink', 'current');
if (substr($symlink, 0, 1) == '/') {
$releasesDirectory = rtrim($this->getConfig()->deployment('to'), '/') . '/' . $releasesDirectory;
}
$output = ''; $output = '';
$result = $this->runCommandRemote('ls -1 ' . $releasesDirectory, $output); $result = $this->runCommandRemote('ls -1 ' . $releasesDirectory, $output);
$releases = ($output == '') ? array() : explode(PHP_EOL, $output); $releases = ($output == '') ? array() : explode(PHP_EOL, $output);

Loading…
Cancel
Save