Closed (fixed)
Project:
Configuration Split
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Reporter:
Created:
23 Feb 2017 at 13:48 UTC
Updated:
10 Mar 2017 at 15:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
swentel commentedhmm, I'd -1 one this, especially because there's already a beta release .. kind of of annoying for users having to switch ...
I would make this optional somehow because I currently swap this myself.
Comment #5
bkosborneGlad to see progress on this. This would allow users to use drush config-export and drush config-import in a way that's compatible with config split?
Comment #6
bircherYes the latest dev version of config_split works with the default
cimandcexof the latest drush version (both 8.x and master), so the next tagged release of drush will be compatible with the config_filter and config_split combo.Comment #7
bkosborneDrush 8.1.10 was just tagged yesterday, so that's great news! I'll give this a whirl sometime today.
Comment #8
bircherah fantastic! yes they tagged it right after merging the PR that makes it work with it. Great news! please test the latest dev version of config_split, I'll tag a new release then soon.
Comment #9
bkosborneMy current site uses just one config sync directory, located in ../config/default. I've been exporting and importing all config from this one directory on all environments.
Here's what I've done to test the new drush integration:
1. Updated to drush 8.1.10
2. Downloaded and enabled the latest dev of config_split and config_filter
3. Configured a config split config entity for "development" with config dir
../config/developmentand selected the devel module and it's config.4. Simply ran
drush config-exporton my local environment. Here's what I get (notice the warnings):5. Update some of the devel config that's in the
../config/development, and randrush config-import. This detected the change to the devel config and imported it.So, it seems that drush is indeed aware of config split now.
But how do I do an export/import without it using the development split? Like when I deploy to production, what command do I use?
Comment #10
bircheron production you set in your settings php the split to inactive. Or you make the split inactive in your config and you set it to active in settings.php in the development environment.
see http://nuvole.org/blog/2016/nov/28/configuration-split-first-beta-releas...
the part relevant here is:
$config['config_split.config_split.development']['status'] = FALSE;Whether it is active or not matters *before* the import, just like a split is not taken into consideration when you import it the first time the active state is the one the site knows before synchronising the configuration.
I'll check the warnings, thanks for pointing them out!