Hi @MWDelaney , of course. Right now it shows like this:
build-after.yml
---
- name: Check for composer.json in project root or project_subtree_path
stat:
path: "{{ deploy_helper.new_release_path }}/composer.json"
register: composer_json
- name: Fail if composer.json not found
fail:
msg: "Unable to find a `composer.json` file in the root of '{{ deploy_helper.new_release_path }}'. Make sure your repo has a `composer.json` file in its root or edit `repo_subtree_path` for '{{ site }}' in `wordpress_sites.yml` so it points to the directory with a `composer.json` file."
when: not composer_json.stat.exists
This file has been truncated. show original
composer.json
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
This file has been truncated. show original
As you can see it has the same contents as the original one https://github.com/roots/trellis/blob/master/roles/deploy/hooks/build-after.yml except that I removed the no_scripts part as @alwaysblank told me, and at the end of the file I also commented out some tests I did using the composer command.
I changed the name of the task too ( Install Composer dependencies with scripts ) to see in the deploy process if the changes were firing.
The weird thing is that the plugins in my composer json are being installed correctly, and the ones from Koodimonni are installed in the composer cache too, but the operation that transfers the language files to the correct folder (/site/web/app/languages) is not being fired.
Thank you both for your help.