Great! Your steps appear correct as I glance over them, although I didn’t compare step-by-step with the README or with the docs.
One thing you’ll probably need to address, if you haven’t already, is how to get your theme’s compiled assets on the server. The dist
directory typically wouldn’t be committed to your repo and thus wouldn’t be retrieved when the deploy clones the repo.
The recommended approach is to compile the assets on your local machine (gulp --production
) then have the deploy sync the dist
directory to your remote server. As @swalkinshaw recommended here, add this line to your deploy.yml
:
deploy_build_before: "{{ playbook_dir }}/deploy-hooks/build-before.yml"
Then create a deploy-hooks
directory in your ansible
directory, with a build-before.yml
file that has contents similar to what @swalkinshaw listed at the link above. Decide which tasks to include. At a minimum, I think you’d want the last task - name: Copy project local files
. You’ll want to adjust the paths for your theme name, etc.
That’s a little complex but charge through it and I think you’ll continue understanding it as well as you’ve done with the other steps before this.