Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions docs/recipe/magento2.md
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ Adds additional files and dirs to the list of shared files and dirs.


### magento\:set_cache_prefix {#magento-set_cache_prefix}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L454)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L455)

Update cache id_prefix.

Expand All @@ -684,19 +684,20 @@ To use this feature, add the following to your deployer scripts:
```php
after('deploy:shared', 'magento:set_cache_prefix');
after('deploy:magento', 'magento:cleanup_cache_prefix');
before('magento:compile', 'magento:cache:flush');
```


### magento\:cleanup_cache_prefix {#magento-cleanup_cache_prefix}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L494)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L495)

Cleanup cache id_prefix env files.

After successful deployment, move the tmp_env.php file to env.php ready for next deployment


### magento\:cron\:stop {#magento-cron-stop}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L510)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L511)

Remove cron from crontab and kill running cron jobs.

Expand All @@ -708,7 +709,7 @@ To use this feature, add the following to your deployer scripts:


### magento\:cron\:install {#magento-cron-install}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L526)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L527)

Install cron in crontab.

Expand All @@ -720,7 +721,7 @@ To use this feature, add the following to your deployer scripts:


### artifact\:prepare {#artifact-prepare}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L532)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L533)

Prepares an artifact on the target server.

Expand All @@ -740,7 +741,7 @@ This task is group task which contains next tasks:


### artifact\:finish {#artifact-finish}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L545)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L546)

Executes the tasks after artifact is released.

Expand All @@ -756,7 +757,7 @@ This task is group task which contains next tasks:


### artifact\:deploy {#artifact-deploy}
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L554)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L555)

Actually releases the artifact deployment.

Expand Down
1 change: 1 addition & 0 deletions recipe/magento2.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ function magentoDeployAssetsSplit(string $area)
* ```php
* after('deploy:shared', 'magento:set_cache_prefix');
* after('deploy:magento', 'magento:cleanup_cache_prefix');
* before('magento:compile', 'magento:cache:flush');
* ```
**/
desc('Update cache id_prefix');
Expand Down