0

I have created one custom module with config/install folder. This install folder contain content type yml. Basically on install of custom module new content type should be created. When I use drush en my_custom_module, all configuration are getting imported successfully. But when I do drush cim only module is installed but configuration(mycustommodule/config/install) are missing. Do we need to do any changes so that while doing global cim import it should import my config/install level configuration too.

8
  • Then the module was not correctly installed on the site where you run drush cex.
    – 4uk4
    Feb 21, 2023 at 13:06
  • I recheck multiple time but module is installed without any error but config/install is ignored. While doing cim I didn't found any error.
    – Sudha
    Feb 21, 2023 at 13:14
  • Did you export the configuration after installing the module?
    – cilefen
    Feb 21, 2023 at 13:37
  • ok..Yes I export the configuration when my module was enable using drush cex. Then I placed all require yml file from config/sync folder to my custom module config folder ie config/install. So in short in core.extensions.yml file I have entry to enable my custom module. I tested with fresh database where my module is not install and tired drush cim. Without any error my module is getting install but config/install folder is ignored.
    – Sudha
    Feb 21, 2023 at 13:47
  • I placed all require yml file from config/sync folder to my custom module config folder ie config/install ... you don't need to do that when deploying through drush cex/cim.
    – 4uk4
    Feb 21, 2023 at 14:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.