Yarn, error Command "build:production" not found, when running build-before.yml

I have a recent install of trellis/roots/sage (as of 12/31/2016).

I kept the build-before.yml file as-is provided, just uncommented all the lines.

When I deploy, I get the following error:

error Command "build:production" not found

Is it referencing “build” in sage/package.json? Trying to locate the “build:production” command.

The build:production script exists: https://github.com/roots/sage/blob/9c522ed9f441cd8c632d9a73ce0cdea594b65891/package.json#L22

I’d manually try running those scripts and see if they work.

I’m using sage 8.5.0.

Do I need to change my trellis/build-before.yml for sage 8?
Can I use the one from the roots-example-project?

Well you had said

I have a recent install of trellis/roots/sage (as of 12/31/2016).

:slight_smile:

But yes, use the one from roots-example-project.