check for structure_sync module before drush im ib on deploy-drupal.sh
This commit is contained in:
+10
-3
@@ -78,10 +78,17 @@ vendor/bin/drush updb -y --ansi
|
||||
step "Importing configuration"
|
||||
vendor/bin/drush config-import -y --ansi
|
||||
#drush csim prod -y
|
||||
vendor/bin/drush im --choice safe --ansi
|
||||
vendor/bin/drush ib --choice full --ansi
|
||||
|
||||
# step "Regen path aliases"
|
||||
step "Importing content and blocks (structure_sync)"
|
||||
# Only when structure_sync is enabled on this environment (config_split aware).
|
||||
if vendor/bin/drush php:eval 'echo \Drupal::moduleHandler()->moduleExists("structure_sync") ? "yes" : "no";' 2>/dev/null | grep -q "yes"; then
|
||||
vendor/bin/drush im --choice safe --ansi
|
||||
vendor/bin/drush ib --choice full --ansi
|
||||
else
|
||||
echo "structure_sync is not enabled on this environment, skipping im/ib."
|
||||
fi
|
||||
|
||||
step "Regen path aliases"
|
||||
#drush pag all canonical_entities:node
|
||||
#drush pag all canonical_entities:taxonomy_term
|
||||
|
||||
|
||||
Reference in New Issue
Block a user