From 28eacbe860aba63b6e244b31b8c316a8df6d9ca2 Mon Sep 17 00:00:00 2001 From: Akos Date: Mon, 10 Jun 2024 14:26:35 +0200 Subject: [PATCH] use magento_dir when installing vendor folder --- recipe/magento2.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/recipe/magento2.php b/recipe/magento2.php index 874126c4e..d5ea956ec 100644 --- a/recipe/magento2.php +++ b/recipe/magento2.php @@ -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"