S
S
Steely2017-07-17 18:41:09
Composer
Steely, 2017-07-17 18:41:09

How to correctly run composer update to update the project in the folder?

The bottom line is, there is a project: /www/project it contains
composer.json

composer create-project --prefer-dist yiisoft/yii2-app-basic mysite

Now I have a project /www/project/mysite which contains my composer.json
How can I now update the dependencies in both the root folder and the project folder with one command?
When I create a docker container, I have the command: composer update, but only what is written in the first composer.json is updated.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-07-17
@webinar

run composer update in composer.json folder which is root. It will pull up and update all dependencies and dependencies of dependencies, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question