Today I installed a Craft project (Craft version 4.5.9) onto a new server (git pull, manualy copy of web/assets, composer install, db dump import, craft up). Everything runs fine except one thing:
The installation has to sites (setting › sites). On the new installation both sites were present but the not default one had the same title and slug as the default site. I had to change it manually.
I checked the project.yaml
: The sites are not stored in it. Neither in the original installation nor in the new one.
I understand that all project settings should be saved in the project.yaml
. Have I found a bug or did I forget one necessary step? Thank you for ideas!
sites/
. Each site will be in a separate file, with a format like{handle}--{uuid}.yaml
. Is it possible that this directory matches a.gitignore
rule?php craft project-config/apply --force
to reapply all project config values in the new environment. It sounds like something got out of sync, and Craft doesn't see the updates due to matching timestamps in the YAML files and the database.