D8 Configuration Split
Reviewed 230530
This is a very useful tutorial for config_split
https://www.advomatic.com/blog/using-configuration-split-to-have-dev-only-configuration-in-drupal-8
If you want to learn more about the core D8 configuration management these docs will help:
https://www.drupal.org/docs/8/configuration-management/managing-your-sites-configuration
Step-by-step guide
Move existing configuration to "config/sync"
Edit "$settings['config_sync_directory']" so that is points to "../config/sync"
$settings['config_sync_directory'] = dirname(DRUPAL_ROOT) . '/config/sync';
Create
config/dev
 directoryCreate DEV split configuration from UI (use the above tutorials for details)
Run
drush csex dev
 andÂdrush csex
You're done.
From now on it's enough to use drush cex/cim
 (without the "s").
Git
Workflow Steps to Safely Manage Config Files
A series of screenshots from a must-watch DrupalCon Vienna preso called Advanced Configuration Management with Config Split et al.
Â
drush cex # export config git add && git commit git pull composer install drush updb drush cim # import config git push |
---|
composer update drush updb drush cex # export config git add && git commit git push |
---|
And here's the complete preso deck:
Related articles
Review History
Who | When | Status |
---|---|---|
 |  |  |
Bob | 20230530 | Updated some details - current |