Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

deploy:update command fails to update all multisites #2059

Closed
bobbygryzynger opened this issue Sep 30, 2017 · 0 comments
Closed

deploy:update command fails to update all multisites #2059

bobbygryzynger opened this issue Sep 30, 2017 · 0 comments
Labels
Bug Something isn't working

Comments

@bobbygryzynger
Copy link
Contributor

bobbygryzynger commented Sep 30, 2017

My system information:

  • BLT version: 8.x

When I run this command:

blt deploy:update

The updates are continuously run on only one multisite.

BLT loops over the multisite values, but before overriding the uri value it checks to see if it is already set and doesn't override it if a configuration value already exists.

This logic doesn't work because the uri will be set to default initially and this logic prevents the updates from being applied to any other site. This results in updates being (erroneously) applied to the initial uri multiple times.

From src/Robo/Commands/Deploy/DeployCommand.php

public function updateSites() {
  ...
  foreach ($this->getConfigValue('multisites') as $multisite) {
    $this->say("Deploying updates to $multisite...");
    if (!$this->config->get('drush.uri')) {
      $this->config->set('drush.uri', $multisite);
    }
  }
  ...
}
@grasmash grasmash added the Bug Something isn't working label Oct 2, 2017
briantully added a commit to briantully/blt that referenced this issue Feb 8, 2018
* acquia/8.x: (1264 commits)
  Update composer.json
  Use the correct command for setup.strategy = sync (acquia#2097)
  Provide better Memcached boilerplate config. (acquia#2063)
  Note about docker and headless chrome (acquia#2091)
  Fixes acquia#2072: temporarily disabling checking of features overrides. (acquia#2082)
  Drupal 8.4 compatibility improvements. (acquia#2080)
  Update .travis.yml
  Removing sudo from Travis. (acquia#2066)
  Fixes acquia#2059: override site uri during deploy:update. (acquia#2060)
  Remove any NULL arguments from original command being passed into VM, so that missing arguments detected faster. (acquia#2058)
  Add additional settings file include options acquia#2054 (acquia#2055)
  Add support for Apache Solr search (Acquia Search) acquia#412. (acquia#2053)
  Fixes acquia#1872: Command arguments lost when invokeCommand is called with @executeInDrupalVm within a Robo watch task. (acquia#2052)
  Cleaning up composer requirements. (acquia#2050)
  Update configuration-management.md (acquia#2051)
  Fixes acquia#2048: PHP Warning when using modules.local.uninstall: null. (acquia#2049)
  Fixes acquia#2046: Modifying BLT Configuration definition is not accurate. (acquia#2047)
  Fixes acquia#2040: Assert existence of .nvmrc or .node-version. (acquia#2042)
  Add back line removed in acquia#2039 (acquia#2043)
  Fix spacing in simplesamlphp setup readme. (acquia#2044)
  ...
mirsoftacquia added a commit to mirsoftacquia/blt that referenced this issue Jul 5, 2018
lcatlett pushed a commit to lcatlett/blt that referenced this issue Nov 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants