Browse Source

[Nostromo] Tweak on deployment

pull/1/head
Andrés Montañez 8 years ago
parent
commit
16c02a5b74
  1. 5
      src/Mage/Command/BuiltIn/DeployCommand.php

5
src/Mage/Command/BuiltIn/DeployCommand.php

@ -137,9 +137,6 @@ class DeployCommand extends AbstractCommand
$this->runtime->setStage(Runtime::ON_DEPLOY); $this->runtime->setStage(Runtime::ON_DEPLOY);
$onDeployTasks = $this->runtime->getTasks(); $onDeployTasks = $this->runtime->getTasks();
if (!$this->runtime->inRollback()) {
}
if ($this->runtime->getEnvironmentConfig('releases', false)) { if ($this->runtime->getEnvironmentConfig('releases', false)) {
if (!in_array('deploy/targz/copy', $onDeployTasks) && !$this->runtime->inRollback()) { if (!in_array('deploy/targz/copy', $onDeployTasks) && !$this->runtime->inRollback()) {
array_unshift($onDeployTasks, 'deploy/targz/copy'); array_unshift($onDeployTasks, 'deploy/targz/copy');
@ -149,7 +146,7 @@ class DeployCommand extends AbstractCommand
array_unshift($onDeployTasks, 'deploy/release/prepare'); array_unshift($onDeployTasks, 'deploy/release/prepare');
} }
} else { } else {
if (!in_array('deploy/rsync', $onDeployTasks)) { if (!in_array('deploy/rsync', $onDeployTasks) && !$this->runtime->inRollback()) {
array_unshift($onDeployTasks, 'deploy/rsync'); array_unshift($onDeployTasks, 'deploy/rsync');
} }
} }

Loading…
Cancel
Save