Open gilzow opened 1 year ago
This is important. It's not really compatible with the current design, where all configuration is generated during ddev get
, but it's worth strategizing about.
It's possible we could reorganize things so that ddev get
gets the tools to evaluation the platform yamls, and those are used at the end of the ddev get
and could also be used pre-start or something, or by a custom command to update.
Looks like this could also tie into #61 (ie the potential need for a ddev rebuild
command)
Scenario:
Project is cloned locally using
platform get <projectid>
. Project is configured to usetype: "php:7.4"
in .platform.app.yaml. DDEV+ddev-platformsh is used to develop locally. Upstream changes occur, changing the type tophp:8.1
with composer updates and other changes.git fetch & git pull
are used to update the local copy of the repository. DDEV is restarted.Expected outcome: web application container is update to reflect the updated type (php 8.2) in the application.
Actual outcome: web application container remains the same as initially configured (i.e. php 7.4)
Ideally, there would be a warning that the current platform configuration files are different from the ddev configurations and that a rebuild (possibly a
ddev rebuild
command?) needs to occur.Only way I know to "fix" the application container currently is to either rerun the
ddev get platformsh/ddev-platformsh
command and walk through all the steps, or manually update the the.ddev/config.platformsh.yaml
and then do addev restart
.