Skip to content

Commit

Permalink
Fixing deploy:update command.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Jun 1, 2017
1 parent f83ae6f commit 57c2d1e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/Robo/Commands/Deploy/DeployCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,19 +553,18 @@ protected function deploySamlConfig() {
* @command deploy:update
*/
public function updateSites() {
// Most sites store their version-controlled configuration in
// /config/default. ACE internally sets the vcs configuration
// directory to /config/default, so we use that.
$this->config->set('cm.core.key', $this->getConfigValue('cm.core.deploy-key'));
// Disable alias since we are targeting specific uri.
$this->config->set('drush.alias', '');

foreach ($this->getConfigValue('multisites') as $multisite) {
$this->say("Deploying updates to $multisite...");
$this->config->set('drush.uri', $multisite);

$status_code = $this->invokeCommand('setup:config-import', [
// Most sites store their version-controlled configuration in
// /config/default. ACE internally sets the vcs configuration
// directory to /config/default, so we use that.
'--define cm.core.key=' . $this->getConfigValue('cm.core.deploy-key'),
// Disable alias since we are targeting specific uri.
'--define drush.alias=""',
"--define drush.uri='$multisite'",
]
);
$status_code = $this->invokeCommand('setup:config-import');
if (!$status_code) {
return $status_code;
}
Expand Down

0 comments on commit 57c2d1e

Please sign in to comment.