upgradeis primarily used in
Makefiletargets, it usually includes a
composer update, but may also contain other actions, such as
To update application packages can be updated with
which is a shorthand for running
composer update in the PHP container.
Note: If you have made changes to
composer.phd5.jsonyou need to run
dist-upgradeto rebuild the image before upgrading.
A phd5-template can be updated by changing its Docker
After chaning the base version run
To get the base image, update packages and rebuild the application.
This action can apply updated configuration settings, vendor package constraints and new PHP version from the base-image, i.e. phd5-app.
Create a SQL-dump of the running system you want to upgrade.
To import the dump into a locally running application run
yii db/destroy yii db/create yii db/import /dumps/project.sql yii migrate
You may also update the admin password locally
yii user/password admin admin1
If you can not build the image, ie. due to a broken
composer.lock file, revert its changes
and run the update again.
If you can not build the image, because you have locked packages which do not match a newer PHP version, it's recommended to comment the composer installation in the Dockerfile and run
Help us to improve the documentation, fork this page.