Last active
October 2, 2020 14:50
-
-
Save andkirby/6675e676462899d46f3a1ec478af6aff to your computer and use it in GitHub Desktop.
Remove added data after `magento app:config:dump`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -r '$config = require "app/etc/config.php"; \ | |
$config = ["modules" => $config["modules"]]; \ | |
echo "<?php\nreturn "; var_export($config); \ | |
echo ";";' \ | |
> app/etc/config.php.cleaned && mv app/etc/config.php.cleaned app/etc/config.php | |
php -r '$config = require "app/etc/env.php"; \ | |
unset($config["system"]); \ | |
echo "<?php\nreturn "; \ | |
var_export($config); \ | |
echo ";";' \ | |
> app/etc/env.php.cleaned && mv app/etc/env.php.cleaned app/etc/env.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment