Created
May 23, 2018 13:03
-
-
Save roman204/0ca9780e1fad0a40ddbfbffece5d875c to your computer and use it in GitHub Desktop.
diff magento2 modules from config.local.php and config.prod.php
This file contains hidden or 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 | |
$local = include('config.local.php'); | |
$prod = include('config.prod.php'); | |
echo "modules in local but not in prod" . PHP_EOL; | |
foreach($local['modules'] as $module => $value){ | |
if(!isset($prod['modules'][$module])){ | |
echo $module . PHP_EOL; | |
} | |
} | |
echo "modules in prod but not in local" . PHP_EOL; | |
foreach($prod['modules'] as $module => $value){ | |
if(!isset($local['modules'][$module])){ | |
echo $module . PHP_EOL; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment