This is a quick guide on how to get a D8 site running on DigitalOcean
- Spin up a D8 droplet
- ssh into the IP address assigned: ssh root@IPADDRESS
Install PHP 7.x
sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.1-fpm php7.1-curl php7.1-gd php7.1-xml php7.1-mysql sudo nano /etc/nginx/sites-enabled/drupal
Once in the nginx hosts file change the following
#fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
- reboot the server or restart nginx, either or works.
- If you are deploying a repo from github, add a ssh key with: ssh-keygen -t rsa and paste the public key into the repos → settings → deploy keys section. reboot the server.