dto-btn / todo

Catch-all for issues that aren't related to a specific project.
0 stars 0 forks source link

MySSC: fix playbook module install failure #76

Closed patheard closed 4 years ago

patheard commented 4 years ago

After adding a new module and exporting the config, migrating the code to a new environment fails.

Steps to reproduce:

# Local env
composer require drupal/module_name
drush en module_name
drush cex

# Git commit and merge config changes and composer.json/lock

# Dev env
git pull
drush cim

.Fails with module not found error.

patheard commented 4 years ago

The failure was being caused by Drupal's module cache. New environments were not aware that the module had been installed, despite it being in the web/modules/contrib foldewr.

Fix was to drush cache:rebuild before the drush config:import.