Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

['config-export']['skip-modules'] - deletes lines from core.extension.yml for Modules that should be enabled on remote #2371

Closed
eigentor opened this issue Oct 1, 2016 · 1 comment

Comments

@eigentor
Copy link

eigentor commented Oct 1, 2016

I learnt about the
$command_specific['config-export']['skip-modules'] = array('devel');
in drushrc.php to keep a module that I enable locally out of config export and import.
This works very well.

What does not seem to work, is the reversed situation:
I want to keep the shield module enabled on my remote site, so it is passwort protected and hidden from Google. I Exported its status into core.extension.yml, so it has a line
shield: 0
It needs to stay like this, so when I import configuration on the remote site (which I do not do with drush but via the interface).
But when I put the shield module into the drush-ignored ones, like so
$command_specific['config-export']['skip-modules'] = array('shield');
The line shield:0 gets deleted from core.extension.yml when exporting config.
So skipping in this case appears not to mean "leave untouched" but "have no config for".
Importing the newly written config into the remote site would uninstall the shield module.

Maybe it is the way this is meant to work.
So would be the only way for me to keep shield installed on the remote site to import config on the remote site with drush and put
$command_specific['config-import']['skip-modules'] = array('shield'); in the remote servers drushrc.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants