Roots Discourse

Build-before.yml and deploying other branches

Hi,

in group_vars we have two environments, staging and production. In the wordpress_sites.yml file for staging we’re telling trellis to deploy the staging git branch. For production, we’re using prod.

We found that we can’t be on any other branch then the one we’re deploying due to the build-before.yml file relying on the current branch you’re on in order to build and deploy the dist folder for sage themes. My question is if there’s a way for the dist folder to be built on the server itself to avoid this problem.

Try https://github.com/roots/trellis/pull/997

Note that it was reverted in https://github.com/roots/trellis/pull/1006