0

I tell drush this:

drush @live cim --skip-modules=system,swiftmailer  

and drush replies with this:

  Collection  Config                 Operation                
              swiftmailer.transport  update 
              system.performance     update
  Import the listed configuration changes? (y/n)  

and, if I reply "y", the settings in the live Drupal site are overwritten from settings previously exported from the dev system.

What do I have to do to avoid importing selected parts of an exported configuration?

bumped to the homepage by Community 2 days ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

0

I believe that Config Ignore could help you out here.

Spoiler: I am the maintainer of that module.

Install the module, go to admin/config/development/configuration/ignore and add the names of the config entities that you would like to not to change, when you import.

In this case:

swiftmailer.transport
system.performance

Save, remember to export config_ignore.settings.yml to the config folder (yes, some of us tend to forget that bit) and you should be golden.

  • Thanks. Will look into that. BTW do you exactly what --skip-modules is supposed to do? – iainH Feb 13 '17 at 0:40
  • --skip-modules is broken. A lot. I was actually told a few days ago that there is being work done on a more reliable/stable version of how to exclude configuration when using Drush, but I can't point you toward any specific issue that will prove this. Sorry. – TLyngeJ Feb 14 '17 at 10:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.