A Composer package containing custom Deployer tasks for Magento, shared across multiple projects.
First, add the custom repository to Deployer's composer.json file:
composer config repositories.studioraz-private-packagist composer https://repo.packagist.com/studioraz/
Then, require the package:
composer require studioraz/deployer-extra-tasks
Add the following to your deploy.php
immediately after the Magento recipe is included:
require 'vendor/studioraz/deployer-extra-tasks/src/index.php';
Updates the cache id_prefix on deploy.
Cleans up the cache id_prefix environment files.
Kills all Magento cron processes related to the current deployment.
Installs composer vendors for the Magento project.
Builds Tailwind CSS files for specified Hyva themes.
Set the hyva_themes
configuration with the theme paths in your deploy.php
:
set('hyva_themes', [
'magento2-default-theme' => 'vendor/hyva-themes/magento2-default-theme',
'magento2-hyva-base-theme' => 'vendor/studioraz/magento2-hyva-base-theme'
]);
This task will iterate over the specified themes and run the Tailwind build process for each.