diff --git a/CHANGELOG.md b/CHANGELOG.md index 50f1c75..3d8c235 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,5 +2,5 @@ > 14 March 2019 - Adding the `compile` param -- Not run DI Compile into UAT environments during the deploy -- Not run Static Content generation into UAT environments during the deploy +- Optionally not run DI Compile into UAT environments during the deploy +- Optionally not run Static Content generation into UAT environments during the deploy diff --git a/deploy.php b/deploy.php index 3309dda..c84737e 100644 --- a/deploy.php +++ b/deploy.php @@ -29,7 +29,7 @@ # ----- Magento properties ------- set('is_production', 0); -set('compile', 0); +set('compile_UAT', 1); set('languages', 'en_US'); set('magento_dir', '/'); set('magento_bin', '{{magento_dir}}bin/magento'); @@ -107,7 +107,7 @@ desc('Compile Magento DI'); task('magento:compile', function () { - if (get('is_production') || get('compile')) { + if (get('is_production') || get('compile_UAT')) { run("{{php}} {{release_path}}{{magento_bin}} setup:di:compile {{verbose}}"); } else { write("Not running the DI Compile for UAT"); @@ -118,7 +118,7 @@ task('magento:deploy:assets', function () { if (get('is_production')) { run("{{php}} {{release_path}}{{magento_bin}} setup:static-content:deploy {{verbose}}"); - } elseif (get('compile')) { + } elseif (get('compile_UAT')) { run("{{php}} {{release_path}}{{magento_bin}} setup:static-content:deploy --force {{verbose}}"); } else { write("Not running the Static Content deploy for UAT");