Skip to content

Instantly share code, notes, and snippets.

@roman204
Created May 23, 2018 13:03
Show Gist options
  • Save roman204/0ca9780e1fad0a40ddbfbffece5d875c to your computer and use it in GitHub Desktop.
Save roman204/0ca9780e1fad0a40ddbfbffece5d875c to your computer and use it in GitHub Desktop.
diff magento2 modules from config.local.php and config.prod.php
<?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