Skip to content

Commit 812899d

Browse files
committed
Change composer update to install to follow PHP/composer best practice
[ci skip]
1 parent 0c351e2 commit 812899d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/ci/examples/deployment/composer-npm-deploy.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ before_script:
2020
- php -r "unlink('composer-setup.php');"
2121
```
2222

23-
This will make sure we have all requirements ready. Next, we want to run `composer update` to fetch all PHP dependencies and `npm install` to load node packages, then run the `npm` script. We need to append them into `before_script` section:
23+
This will make sure we have all requirements ready. Next, we want to run `composer install` to fetch all PHP dependencies and `npm install` to load node packages, then run the `npm` script. We need to append them into `before_script` section:
2424

2525
```yaml
2626
before_script:
2727
# ...
28-
- php composer.phar update
28+
- php composer.phar install
2929
- npm install
3030
- npm run deploy
3131
```
@@ -133,7 +133,7 @@ before_script:
133133
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
134134
- php composer-setup.php
135135
- php -r "unlink('composer-setup.php');"
136-
- php composer.phar update
136+
- php composer.phar install
137137
- npm install
138138
- npm run deploy
139139
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'

0 commit comments

Comments
 (0)