So, I have a project completed. I’m trying to deploy it (avoiding Trellis on this first go as Ansible is a touch complicated for me I just want to understand the basics of how to do this first and then Trellis next go).
I spun up a digitalocean droplet, LEMP stack.
Got an ssl cert with certbot. So far so good, everything works hello world from /var/www/html.
Cloned my bedrock project and put it in /srv/www/example.com
Created a wordpress database user, new database, and put all this in the .env.
Configured the nginx conf to match https://roots.io/docs/bedrock/master/server-configuration/#nginx-configuration-for-bedrock
sudo systemctl reload nginx (also tried restarting and even rebooting)
Now I expected to see a default twentytwentyone theme at example.com, but instead in Chrome a download is forced name ‘download’ and the contents are the exact contents of web/index.php.
So, its using the new directory on /srv/www/example.com, but something is not firing right.
Is it possibly the nginx conf still? I copied the contents of the above mentioned docs into /etc/nginx/sites-available/digitalocean, but there are plenty of other files in there too. Would it be helpful if I started from a default Ubuntu droplet and just manually installed php, mariadb, nginx etc. instead of using the defaul digitalocean droplet?
I’m kinda stumped about the ‘download’ behavior. Anyone knows what that means?