Skip to content

Commit 7a25e86

Browse files
committed
Merge remote-tracking branch 'origin/master' into 27188_memcache
2 parents f84fd33 + 803203f commit 7a25e86

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

chain/chain-site-rebuild.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ commands:
3939
- command: site:db:import
4040
arguments:
4141
name: '%{{name}}'
42+
# Import configuration
43+
- command: exec
44+
arguments:
45+
bin: 'cd /vagrant/repos/%{{name}}/web; drush cim -y;'
4246
# Run db updates
4347
- command: exec
4448
arguments:
4549
bin: 'cd /vagrant/repos/%{{name}}/web; drush updb -y;'
46-
# Import configuration
50+
# Import configuration again to fix a problem with config import when new modules are added to core.extensions.yml
4751
- command: exec
4852
arguments:
4953
bin: 'cd /vagrant/repos/%{{name}}/web; drush cim -y;'

scripts/site_rebuild.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ drupal site:phpunit:setup ${SITENAME} && \
1111
drupal site:behat:setup ${SITENAME} && \
1212
drupal site:settings:memcache ${SITENAME} && \
1313
drupal site:db:import ${SITENAME} && \
14+
cd /vagrant/repos/${SITENAME}/web && drush cim -y && \
1415
cd /vagrant/repos/${SITENAME}/web && drush updb -y && \
1516
cd /vagrant/repos/${SITENAME}/web && drush cim -y && \
1617
cd /vagrant/repos/${SITENAME}/web && drush cr

src/Command/SiteDbImportCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ protected function execute(InputInterface $input, OutputInterface $output) {
142142
'cd %s && ' .
143143
'chmod 777 ../default && ' .
144144
'chmod 777 settings.php && ' .
145-
'drush si -y %s %s',
145+
'drush si -y %s %s && ' .
146+
'drush cset "system.site" uuid "$(drush cget system.site uuid --source=sync --format=list)" -y',
146147
$this->shellPath($this->destination),
147148
$this->profile,
148149
$options

0 commit comments

Comments
 (0)