diff --git a/docs/recipe/craftcms.md b/docs/recipe/craftcms.md index 807eeff2a..8add325fa 100644 --- a/docs/recipe/craftcms.md +++ b/docs/recipe/craftcms.md @@ -100,8 +100,16 @@ Overrides [writable_dirs](/docs/recipe/deploy/writable.md#writable_dirs) from `r ## Tasks +### craft\:up {#craft-up} +[Source](https://github.com/deployphp/deployer/blob/master/recipe/craftcms.php#L89) + +Applies pending migrations and project config changes. + +Combined update + + ### craft\:gc {#craft-gc} -[Source](https://github.com/deployphp/deployer/blob/master/recipe/craftcms.php#L120) +[Source](https://github.com/deployphp/deployer/blob/master/recipe/craftcms.php#L127) Runs garbage collection. @@ -109,7 +117,7 @@ Garbage collection ### deploy {#deploy} -[Source](https://github.com/deployphp/deployer/blob/master/recipe/craftcms.php#L127) +[Source](https://github.com/deployphp/deployer/blob/master/recipe/craftcms.php#L134) Deploys Craft CMS. diff --git a/recipe/craftcms.php b/recipe/craftcms.php index 03fbbd046..6cc309022 100644 --- a/recipe/craftcms.php +++ b/recipe/craftcms.php @@ -81,6 +81,13 @@ function craft($command, $options = []) desc('Applies project config file changes.'); task('craft:project-config/apply', craft('project-config/apply')); +/* + * Combined update + */ + +desc('Applies pending migrations and project config changes'); +task('craft:up', craft('up')); + /* * Caches */ @@ -128,8 +135,7 @@ function craft($command, $options = []) 'deploy:prepare', 'deploy:vendors', 'craft:clear-caches/compiled-classes', - 'craft:migrate/all', - 'craft:project-config/apply', + 'craft:up', 'craft:gc', 'craft:clear-caches/all', 'deploy:publish',