I am trying to learn Trellis + Bedrock + Sage by following the roots-example-project.
I successfully got the site provisioned and running on my local development environment, but am stuck now that I’m trying to provision and deploy to production.
I am pretty sure I followed all the instructions in the example project but I just can’t figure out why Bedrock is going in the wrong directory when I deploy to production.
On my dev server, the directory structure is:
-- ansible/ (trellis is in here) -- site/ (bedrock is in here)
But when I deploy to production, the directory structure in /srv/www/thesaucerecipes.com/current is:
-- ansible/ (trellis is in here) -- CHANGELOG.md -- composer.json -- composer.lock -- config -- CONTRIBUTING.md -- .env -- .gitignore -- LICENSE -- LICENSE.md -- README.md -- ruleset.xml -- site/ (this is where bedrock should be, but it's empty) -- Vagrantfile -- vendor/ -- web/ -- wp-cli.yml
As you can see, Bedrock is in the site’s root directory, not in the site subdirectory.
In group_vars/production, my wordpress_sites.yml file looks like this:
wordpress_sites: thesaucerecipes.com: site_hosts: - thesaucerecipes.com local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root) repo: firstname.lastname@example.org:isabisa/the-sauce-recipes.git branch: master subtree_path: site # relative path to your Bedrock/WP directory in your repo (above) if it is not the root (like the roots-example-project structure) ... yadda yadda yadda
Is it supposed to work like this or am I missing something?