Build after acorn optimize task fails

  • Trellis 1.16.0 - July 18th, 2022
  • Sage 10.2.0- July 19th, 2022
  • Bedrock 1.20.2 - 2022-08-31

I get a deploy error in a fresh Trellis setup. somebody with this issue?

# Placeholder `deploy_build_after` hook
# ⚠️ This example assumes your theme is using Sage 10
# Uncomment the lines below if you are using Sage 10
# ---

- name: Run Acorn optimize
  command: wp acorn optimize
    chdir: "{{ deploy_helper.new_release_path }}"

After uncomment this task, I get this error:

TASK [deploy : Run Acorn optimize] *********************************************
System info:
  Ansible 2.13.3; Darwin
  Trellis 1.16.0: July 18th, 2022
non-zero return code
Error: The site you have requested is not installed.
Run `wp core install` to create database tables.
fatal: []: FAILED! => {"changed": true, "cmd": ["wp", "acorn", "optimize"], "delta": "0:00:00.313466", "end": "2022-09-13 15:44:14.720100", "rc": 1, "start": "2022-09-13 15:44:14.406634", "stderr_lines": ["Error: The site you have requested is not installed.", "Run `wp core install` to create database tables."], "stdout": "", "stdout_lines": []}

I think we need to update that task to be conditional (to only run if WP is already installed), but you can uncomment on your first deploy to get up and running for now

After you’ve got WordPress installed on the remote server you should be okay to re-add it