So, for boxes with multiple sites…
I have some sites using grunt and also with some other slight requirements for deployment, and they all have different theme names at least.
Here’s what I ended up doing…
In deploy.yml, simply add a -{{ site }} to the deploy_build_before path and create your different build_before files accordingly.
Hey, I’ve set this up and it’s successfully looking for the right build file for each site’s deploy, however I’m getting an error that “deploy_helper is undefined”. Guessing this is referring to {{ deploy_helper.new_release_path }}.
How do I pass this variable onto each build-before file?
Hey, I’m trying to do something similar but I’m a little unsure about how to set this up now that’s it been over two years since this post.
I have a multi-site configured with two different sage themes for two different sites. I’m trying to understand how I can setup my before build file to handle building both themes on deploys.
I’ve tried a handful of different methods found on this discourse but nothing appears to work properly. Any idea how this can be achieved now?
Hi joshb,
The instructions for this are the same since the last post. That said, you might be in uncharted territory with it being multisite. This post wasn’t about wp multisite, but multiple single installs on one server.
If you start a new post with info about what you have tried already, I can try to help.