Skip to content

Commit

Permalink
use magento_dir when installing vendor folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Akos committed Jun 10, 2024
1 parent 63083c5 commit 28eacbe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions recipe/magento2.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@ function magentoDeployAssetsSplit(string $area)

before('magento:deploy:assets', 'magento:sync:content_version');

before('deploy:vendors', function(){
set('original_release_or_current_path',get('release_or_current_path'));
set('release_or_current_path', get('release_or_current_path') .'/'. get('magento_dir'));
});

after('deploy:vendors', function (){
set('release_or_current_path', get('original_release_or_current_path'));
});

desc('Enables maintenance mode');
task('magento:maintenance:enable', function () {
// do not use {{bin/magento}} because it would be in "release" but the maintenance mode must be set in "current"
Expand Down

0 comments on commit 28eacbe

Please sign in to comment.