Hi all,
I hope a trellis guru is able to help me soon with this.
I’m trying to deploy to staging environment and I’m getting this error:
$ ./bin/deploy.sh staging mysite
TASK [deploy : Install Composer dependencies] ***************************************************************************************************************************************************************************************************************************
System info:
Ansible 2.9.13; Linux
Trellis version (per changelog): "Remove default Vagrant SMB credentials"
---------------------------------------------------
Loading composer repositories with package information Installing
dependencies from lock file Package operations: 24 installs, 2 updates, 0
removals - Updating gituser/mytheme (1.0.0 => 1.0.1): [RuntimeException] The
.git directory is missing from web/app/themes/mytheme/, see
https://getcomposer.org/commit-deps for more information install [--prefer-
source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-
installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest]
[-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-
authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--]
[<packages>]...
fatal: [wordpress-staging-server]: FAILED! => {"changed": false, "stdout": "Loading composer repositories with package information\nInstalling dependencies from lock file\nPackage operations: 24 installs, 2 updates, 0 removals\n - Updating gituser/mytheme (1.0.0 => 1.0.1): \n \n [RuntimeException] \n The .git directory is missing from web/app/themes/mytheme/, see https://getcomposer.org/commit-deps for more information \n \n\ninstall [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...\n\n", "stdout_lines": ["Loading composer repositories with package information", "Installing dependencies from lock file", "Package operations: 24 installs, 2 updates, 0 removals", " - Updating gituser/mytheme (1.0.0 => 1.0.1): ", " ", " [RuntimeException] ", " The .git directory is missing from web/app/themes/mytheme/, see https://getcomposer.org/commit-deps for more information ", " ", "", "install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...", ""]}
I have no idea, why is this happening. It was working fine before.
AFAIK there is no .git repo within web/app/themes/mytheme/.
So, why this error?
EDIT
I just checked on the server to find this path and indeed in all releases of today the .git folder is missing although in previous releases it was there. I mean in the folders:
…/releases/xxxxxxxxxxx/web/app/themes/mytheme/