Skip to content
Open
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
8 changes: 4 additions & 4 deletions docs/recipe/magento2.md
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,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#L611)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L612)

Install cron in crontab.

Expand All @@ -785,7 +785,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#L617)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L618)

Prepares an artifact on the target server.

Expand All @@ -805,7 +805,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#L630)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L631)

Executes the tasks after artifact is released.

Expand All @@ -821,7 +821,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#L639)
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L640)

Actually releases the artifact deployment.

Expand Down
3 changes: 2 additions & 1 deletion recipe/magento2.php
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ function magentoDeployAssetsSplit(string $area): void
run('{{bin/php}} {{previous_release}}/{{magento_dir}}/bin/magento cron:remove');
}

run('pgrep -U "$(id -u)" -f "bin/magento +(cron:run|queue:consumers:start)" | xargs -r kill');
// Only kill this installation's processes, several deploy paths can share a box and a user.
run('pgrep -a -U "$(id -u)" -f "bin/magento +(cron:run|queue:consumers:start)" | grep -F "{{deploy_path}}/" | cut -d" " -f1 | xargs -r kill');
});

/**
Expand Down
Loading