By tomster2300


2017-09-21 15:57:32 8 Comments

The Drupal 8 documentation seems to be lacking in regards to the core.extension.yml file, so I'm a little confused on the right way of updating it.

  1. Should drush be populating it on config export, or are you supposed to manually update it?

  2. Do I need to move it from core to my config/sync folder, or leave it in core?

My file's contents are this, even though I have a handful of modules enabled on the site and have exported my config numerous times:

module: {}
theme: {}
profile: ''

On the site I am exporting from (site a) I am using composer to download modules and drush en to enable them, then drush cex to export the configuration to my sync folder. When I copy the sync folder contents over site b and import via drush cim I run into errors that the modules are not installed / enabled. Manually enabling each module then re-importing was successful.

Both sites are 8.3.7.

1 comments

@Adrian Cid Almaguer 2017-09-21 17:07:46

I think that the problem comes from where you have the config files, to be sure that they are really in the config/sync folder go to check if you have this following line in the settings.php file:

$config_directories = array(CONFIG_SYNC_DIRECTORY => 'config/sync');

Keep in mind that this line will have the location of the site configuration files.

Each time you use the drush cex or drush cex sync command the core.extension.yml file will be updated (if needed) with the actual modules (and others) configuration.

@tomster2300 2017-09-21 19:08:41

at project-root/web/sites/default/settings.php I have the following: $config_directories['sync'] = '../config/sync'; I am basing my install off of github.com/drupal-composer/drupal-project so my /web folder is my docroot.

@Adrian Cid Almaguer 2017-09-21 19:12:05

@tomster2300 use $config_directories = array(CONFIG_SYNC_DIRECTORY => 'config/sync'); and your sync directory will be inside the drupal directory where usually is placed.

@Adrian Cid Almaguer 2017-09-21 19:12:48

@tomster2300 I don't know maybe you want to use the ../config/sync location

Related Questions

Sponsored Content

0 Answered Questions

How to handle config changes on core update?

6 Answered Questions

[SOLVED] How do I update the configuration of a module?

1 Answered Questions

1 Answered Questions

Drush tries to export config for modules I deleted months ago

1 Answered Questions

[SOLVED] How to port active configuration to module configuration

1 Answered Questions

Export and import configuration settings and content

2 Answered Questions

1 Answered Questions

project/configuration sync from shell (not from ./admin)

1 Answered Questions

[SOLVED] Use drush to sync core &/or modules directory only

  • 2013-05-21 23:11:25
  • JoBu1324
  • 671 View
  • 3 Score
  • 1 Answer
  • Tags:   drush

Sponsored Content