So I have the following in my Composer file:
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php craft setup/welcome"
],
"post-update-cmd": [
"@php craft migrate/all",
"@php craft project-config/sync",
"@php craft clear-caches/compiled-templates",
"@php craft clear-caches/cp-resources",
"@php craft clear-caches/data",
"@php craft clear-caches/seomatic-frontendtemplate-caches",
"@php craft clear-caches/seomatic-metabundle-caches",
"@php craft clear-caches/seomatic-sitemap-caches",
"@php craft clear-caches/temp-files",
"@php craft clear-caches/template-caches"
],
"post-install-cmd": [
"@php craft migrate/all",
"@php craft project-config/sync",
"@php craft clear-caches/compiled-templates",
"@php craft clear-caches/cp-resources",
"@php craft clear-caches/data",
"@php craft clear-caches/seomatic-frontendtemplate-caches",
"@php craft clear-caches/seomatic-metabundle-caches",
"@php craft clear-caches/seomatic-sitemap-caches",
"@php craft clear-caches/temp-files",
"@php craft clear-caches/template-caches"
]
}
and on my deployment (deployHQ) I have the following SSH command:
cd %path%
composer install
However, sync changes (project-config/sync) doesn't take effect and each time I have to manually click the button. Any ideas what I am missing in the process?