This Magento 2 module makes it possible to import ENV variables into the Magento configuration
composer require justbetter/magento2-env-config-import
bin/magento module:enable JustBetter_EnvConfigImport
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
To prevent the exception The configuration file has changed.' . ' Run the "app:config:import" or the "setup:upgrade" command to synchronize the configuration.
you can add the following configuration to the env.php
.
'deployment' => [
'blue_green' => [
'enabled' => true
]
]
The module is tested on Magento version 2.4.x
Please create a issue or a pull request.
We’re a innovative development agency from The Netherlands building awesome websites, webshops and web applications with Laravel and Magento. Check out our website justbetter.nl and our open source projects.