@
@
@Twitt2020-08-26 21:31:31
PHP
@Twitt, 2020-08-26 21:31:31

Where should composer update be done - in the container, or in the project folder?

How will it be correct to deploy the project:
In the corresponding application container, write composer update, or write composer update outside the container, but just in the project folder?
In the first case, as I understand it, if I do a docker pull, then something will fly off, and for the second case, I need to install the appropriate php locally and the necessary extensions.

Accordingly - who has any thoughts?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
necrodeflorator, 2020-08-26
_

Where is your puff? If in the docker, then do the composer update in the docker container

S
segio_tt, 2020-08-26
@art055

In general, it’s good practice to fall into the docker container exec -ti the name of the bash container and only make a composer update there (you can also use options, for example composer update --ignore-platform-reqs )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question