Skip to content

Commit

Permalink
Pipelines > Compile UAT for default
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelstz committed Mar 14, 2019
1 parent 45d6e4b commit 6363f16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Expand Up @@ -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
6 changes: 3 additions & 3 deletions deploy.php
Expand Up @@ -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');
Expand Down Expand Up @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit 6363f16

Please sign in to comment.