Ran the ansible-playbook provision but nginx hosts weren't created

Hi

Has anyone encountered the same problem? I was able to finish the provision with only 1 error which is regarding composer everything else went fine. I also was able to deploy using ./deploy.sh script. However, when I view the site it gave me an ERR_EMPTY_RESPONSE. So I looked at the nginx config files and cannot see anything that was created for the site I just deployed. Here’s the list of configs on my sites-available directory:

drwxr-xr-x 2 root root 4096 Apr 29 07:28 ./
drwxr-xr-x 9 root root 4096 Apr 29 07:27 ../
-rw-r--r-- 1 root root 2068 Jan 26 23:29 default
-rw-r--r-- 1 root root  108 Apr 29 07:27 letsencrypt-example.com.conf

and the content of the letsencrypt-example.com.conf file is just this:

server {
  listen 80;
  server_name staging.example.com;
  include acme-challenge-location.conf;
}

I was expecting it would create the one in the templates trellis/roles/wordpress-setup/templates/wordpress-site.conf.j2

Yeah, you should see a specific site name conf. You shouldn’t have gotten any errors during the deploy however.

Did you try to re-run the provision?