Skip to content

MAGE_MODE is changed back to default if database config is changed with setup:config:set #2623

@moleman

Description

@moleman

I'm not sure if this behaviour is intentional or not, but in our build / deploy pipeline we sometimes change the database configuration settings of a site depending on different environments. When we are building our production artifacts we are setting the MAGE_MODE to production with "deploy:mode:set production" because we only want to do it once (takes some time) and we don't want to do it during the deployment.

The problem comes when we want to change database configuration with "setup:config:set ...". After we do this, MAGE_MODE is changed back to 'default' which we didn't intend to do. Is this intentional?

Steps

$ php bin/magento deploy:mode:set production

Enabled production mode.

$ php bin/magento deploy:mode:show
Current application mode: production.

$ php bin/magento setup:config:set

$ php bin/magento deploy:mode:show
Current application mode: default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions