Getting "error Command 'build:production' not found" when using build-before.yml in my deployment process

While using the build-before hook during deployment, I’m getting a build:production error. I’ve checked and rechecked to ensure the paths are set up properly in the yaml file, and everything looks good.

“yarn run build” works without issue.

I’ve searched other issues on Discourse, and couldn’t find an answer that resolved the issue for me.

Trellis is expecting you to use Sage 9, here’s a Sage 8 based build-before.yml file:

1 Like

That did the trick. Thanks @ben! Are there any other gotchas to look out for in the deployment hooks, or maybe a thread that might cover those somewhere on Discourse?