Following the documentation I’m attempting to set up a simple Nginx include that contains my 301 redirects. My local folder structure looks like this
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.
Any insights greatly appreciated.