Skip to content

Commit 4dfab34

Browse files
authored
docs: update deployment helper configuration and clarify PHP version usage (#2065)
1 parent ef66552 commit 4dfab34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

guides/hosting/installation-updates/deployments/deployment-helper.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ graph TD
8080
The Deployment Helper can be configured via a `.shopware-project.yml` file in the root of your project.
8181
The following configuration options are available:
8282

83+
::::info
84+
If you have multiple PHP versions locally or on your server, make sure to use `%php.bin%` instead of directly `php` in your custom scripts to use the same PHP version as the Deployment Helper.
85+
::::
86+
8387
```yaml
8488
deployment:
8589
hooks:
@@ -127,6 +131,8 @@ deployment:
127131

128132
one-time-tasks:
129133
- id: foo
134+
# Runs as last step in deployment. Other options is: first (to run before anything else)
135+
when: last # defaults to last
130136
script: |
131137
# runs one time in deployment, then never again
132138
./bin/console --version

0 commit comments

Comments
 (0)