Update global composer install instructions (#1634)

This commit is contained in:
Abdelrahman Omran 2018-06-24 04:00:19 +02:00 committed by Shao Yu-Lung (Allen)
parent 3509473b89
commit 11912055ec

View File

@ -1184,20 +1184,10 @@ server_name laravel.test;
Enabling Global Composer Install during the build for the container allows you to get your composer requirements installed and available in the container after the build is done.
1 - Open the `docker-compose.yml` file
1 - Open the `.env` file
2 - Search for the `COMPOSER_GLOBAL_INSTALL` argument under the Workspace Container and set it to `true`
2 - Search for the `WORKSPACE_COMPOSER_GLOBAL_INSTALL` argument under the Workspace Container and set it to `true`
It should be like this:
```yml
workspace:
build:
context: ./workspace
args:
- COMPOSER_GLOBAL_INSTALL=true
...
```
3 - Now add your dependencies to `workspace/composer.json`
4 - Re-build the Workspace Container `docker-compose build workspace`