Skip to content

Commit 1283c79

Browse files
authored
[#2374] Added opt-in repeated configuration import after initial import. (#2417)
1 parent 271488b commit 1283c79

4 files changed

Lines changed: 183 additions & 2 deletions

File tree

.vortex/docs/content/development/variables.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ The list below is automatically generated with [Shellvar](https://github.com/ale
388388
| <a id="vortex_project"></a>`VORTEX_PROJECT` | Project name.<br/><br/>Drives internal naming within the codebase. Does not affect the names of containers and development URL - those depend on the project directory and can be overridden with [`$COMPOSE_PROJECT_NAME`](#compose_project_name). | `your_site` | `.env`, `scripts/vortex/info.sh` |
389389
| <a id="vortex_provision_acquia_skip"></a>`VORTEX_PROVISION_ACQUIA_SKIP` | Skip Drupal site provisioning in Acquia environment. | `UNDEFINED` | `ACQUIA ENVIRONMENT` |
390390
| <a id="vortex_provision_cache_rebuild_after_db_update_skip"></a>`VORTEX_PROVISION_CACHE_REBUILD_AFTER_DB_UPDATE_SKIP` | Skip cache rebuild after database updates. | `0` | `scripts/vortex/provision.sh` |
391+
| <a id="vortex_provision_config_import_repeat"></a>`VORTEX_PROVISION_CONFIG_IMPORT_REPEAT` | Repeat configuration import after the initial import. Useful when update hooks introduce new configuration that affects subsequent configuration imports (e.g., new config_split settings). | `0` | `scripts/vortex/provision.sh` |
391392
| <a id="vortex_provision_db"></a>`VORTEX_PROVISION_DB` | Provision database dump file. If not set, it will be auto-discovered from the VORTEX_DB_DIR directory using the VORTEX_DB_FILE name. | `UNDEFINED` | `scripts/vortex/provision.sh` |
392393
| <a id="vortex_provision_db_dir"></a>`VORTEX_PROVISION_DB_DIR` | Directory with database dump file. | `./.data` | `scripts/vortex/provision.sh` |
393394
| <a id="vortex_provision_db_file"></a>`VORTEX_PROVISION_DB_FILE` | Database dump file name. | `db.sql` | `scripts/vortex/provision.sh` |

.vortex/docs/content/drupal/provision.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,13 @@ section.
140140
141141
⬇️ Import configuration (if config files present)
142142
143+
⑨ 🔁 Repeat configuration import (opt-in)
144+
143145
🧹 Rebuild caches
144146
145147
🔄 Run deployment hooks
146148
147-
😷 Run DB sanitization
149+
😷 Run DB sanitization
148150
149151
⚙️ Run custom scripts
150152
@@ -165,7 +167,8 @@ You can control the provisioning flow using the following environment variables:
165167
6. `VORTEX_PROVISION_USE_MAINTENANCE_MODE=1`<br/>Enable maintenance mode right after the site is bootstrappable and disable it at the end. Useful when you want to prevent users from accessing the site while it is being provisioned.<br/><br/>
166168
7. `VORTEX_PROVISION_VERIFY_CONFIG_UNCHANGED_AFTER_UPDATE=1`<br/>Verify that active configuration was not changed by database updates. When enabled and config files are present, the provision will fail if `drush updatedb` modifies active configuration, preventing `drush config:import` from silently overwriting those changes.<br/><br/>
167169
8. `VORTEX_PROVISION_CACHE_REBUILD_AFTER_DB_UPDATE_SKIP=1`<br/>Skip the cache rebuild that runs between database updates and configuration import. By default, caches are rebuilt after `drush updatedb` to ensure a clean state before importing configuration.<br/><br/>
168-
9. `VORTEX_PROVISION_SANITIZE_DB_SKIP=1`<br/>Disable database sanitization.
170+
9. `VORTEX_PROVISION_CONFIG_IMPORT_REPEAT=1`<br/>Repeat the configuration import after the initial import. Useful when database update hooks introduce new configuration that affects subsequent configuration imports (e.g., new config_split settings). Disabled by default.<br/><br/>
171+
10. `VORTEX_PROVISION_SANITIZE_DB_SKIP=1`<br/>Disable database sanitization.
169172

170173
:::tip
171174

0 commit comments

Comments
 (0)