summaryrefslogtreecommitdiff
path: root/doc/ci/examples/deployment
diff options
context:
space:
mode:
authorGabriele <gabriele.stefanini@gmail.com>2017-06-22 21:37:01 +0000
committerGabriele <gabriele.stefanini@gmail.com>2017-06-22 21:37:01 +0000
commit812899d1669daacde5acf5b0a11a08a6e07a0906 (patch)
tree4ae655906a8c8c1dc8068b202432d7cd32767f7c /doc/ci/examples/deployment
parent0c351e2142ae3be82e5d750f7e7f0bff7432ec67 (diff)
downloadgitlab-ce-812899d1669daacde5acf5b0a11a08a6e07a0906.tar.gz
Change composer update to install to follow PHP/composer best practice
[ci skip]
Diffstat (limited to 'doc/ci/examples/deployment')
-rw-r--r--doc/ci/examples/deployment/composer-npm-deploy.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/ci/examples/deployment/composer-npm-deploy.md b/doc/ci/examples/deployment/composer-npm-deploy.md
index 8b0d8a003fd..b9f0485290e 100644
--- a/doc/ci/examples/deployment/composer-npm-deploy.md
+++ b/doc/ci/examples/deployment/composer-npm-deploy.md
@@ -20,12 +20,12 @@ before_script:
- php -r "unlink('composer-setup.php');"
```
-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:
+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:
```yaml
before_script:
# ...
- - php composer.phar update
+ - php composer.phar install
- npm install
- npm run deploy
```
@@ -133,7 +133,7 @@ before_script:
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php composer-setup.php
- php -r "unlink('composer-setup.php');"
- - php composer.phar update
+ - php composer.phar install
- npm install
- npm run deploy
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'