Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This is a quick guide on how to get a D8 site running on DigitalOcean

  1. Spin up a WP on Ubuntu 16.04 droplet
  2. ssh into the IP address assigned: ssh root@IPADDRESS

  3. 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.
  4. Install wp-cli with:

    curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
    chmod +x wp-cli.phar
    sudo mv wp-cli.phar /usr/local/bin/wp
  5. Grab a copy of wp-config.php and bring it down to your local.

    scp root@IPADDRESS:/var/www/html/wp-config.php ~/path/to/local
  6. Add the DB connection strings to your wp-config, use a conditional or local settings file to keep your local hosts file in check. Push it up to your repo.

  7. Run the following commands:

    cd /var/www/
    sudo rm -rf html
    git clone YOUR-REPO html
    sudo chown www-data:www-data -R html
  8. Go to the IP address of the dir

  9. Highly Recommend using the site with CloudFlare to help mitigate DDoS attacks and CDN management.  Drupal Instructions.
  10. If you want to optimize PHP & MySQL: check out this page
  11. If you want to optimize the server: check out this page



  • No labels