However, when I provision the server the files aren’t getting templated to the remote. When I ssh into the server, I can see that the Nginx config for my site does have the new include statement, but there is no corresponding directory at etc/nginx/includes.d so the redirects don’t exist.
I have tried running provisioning both with --tags nginx-includes as well as without. The first time I provisioned the output did show 3 changed files, but on subsequent tries it just completes with no changes reported. I’m especially confounded because I have an identical setup on a different project that works fine. I even SSHed into the remote server and created the includes.d directory myself, but upon reprovisioning the directory is still empty. I don’t know what else to try at this point.
so I guess it’s not picking up the local files. I just double-checked the folder structure and still can’t see any reason for it.
UPDATE: Ugh. Turns out I was SSHing into the wrong server when I went to check on the remote files. So of course I wasn’t seeing anything - I was looking on my staging server and thinking I was on production. Just tried again and the nginx-includes are getting templated to production as expected. Still not sure why my redirects weren’t working originally but I can sort that out now. Thanks @swalkinshaw for taking a look all the same!