diff --git a/recipe/craftcms.php b/recipe/craftcms.php new file mode 100644 index 00000000..e5079f9f --- /dev/null +++ b/recipe/craftcms.php @@ -0,0 +1,73 @@ +$output"); + } + } catch (\Throwable $e) { + writeln("{$e->getMessage()}"); + } + }; +} + +desc('Execute craft migrate/all'); +task('craft:migrate/all', craft('migrate/all --interactive=0'))->once(); + +desc('Execute craft project-config/apply'); +task('craft:project-config/apply', craft('project-config/apply --interactive=0'))->once(); + +desc('Execute craft clear-caches/all'); +task('craft:clear-caches/all', craft('clear-caches/all --interactive=0'))->once(); + +desc('deploy'); +task('deploy', [ + 'deploy:prepare', + 'deploy:vendors', + 'craft:clear-caches/all', + 'craft:migrate/all', + 'craft:project-config/apply', + 'deploy:publish', +]); +