magento2-deployer-plus icon indicating copy to clipboard operation
magento2-deployer-plus copied to clipboard

Running app:config:import after setup:db-data:upgrade doesn't create new websites/stores

Open rikwillems opened this issue 5 years ago • 2 comments

I found that the current order of commands during a deploy doesn't (fully) import the configuration properly.

The setup:db-data:upgrade command sets the config_hash in the flag table. This in turns makes the app:config:import think it doesn't need importing. In my case it turns out new website and stores are not created.

Reversing the order of commands helps out but I'm not sure if that has any side effects.

rikwillems avatar Sep 21 '20 08:09 rikwillems

Although the documentation isn't very specific about it, it appears you need to run config import before the setup upgrade steps: https://devdocs.magento.com/guides/v2.4/config-guide/deployment/pipeline/technical-details.html

rikwillems avatar Sep 21 '20 11:09 rikwillems

I will check.

osrecio avatar Oct 24 '20 19:10 osrecio