On November 11, 2016, I attended the FrontendMasters course “DevOps for Frontend Devs” taught by Jem Young from Netflix.

It was a great class. Here’s the checklist I built for bringing up a basic droplet on Digital Ocean

create an ssh key pair

You can reuse one you already have, or create a new one. Make sure it’s on DigitalOcean and create the droplet with it.

create a new server

Host <DROPLET NAME>
  User tamara
  IdentityFile ~/.ssh/id_rsa
  AddkeysToAgent yes
  ForwardAgent yes
  HostName <DROPLET IP>

on the new server, as root

create users with sudo

back on the home machine

If you copied the authorized keys file in the above steps, the following is not needed.

on new server, regular user (from now on)

get a domain name

(optional, but kind of nice for easy referral from everywhere.)

set up the web server

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.4
sudo gem install bundler rake
sudo gem install rails

setting up the application

build and deploy an app


Source