Skip to content

Instantly share code, notes, and snippets.

@xcambar
Created February 16, 2015 17:40
Show Gist options
  • Save xcambar/56b0b8094261c9aab2cf to your computer and use it in GitHub Desktop.
Save xcambar/56b0b8094261c9aab2cf to your computer and use it in GitHub Desktop.
Create a DigitalOcean droplet + Register it into /etc/hosts with Tugboat. Because IP addresses are hard.
NAME=droplet_name #Use your own
tugboat create $NAME
tugboat wait $NAME
DO_IP=`tugboat info $NAME | grep IP | cut -f 2 -d : | xargs`
echo "$DO_IP $NAME.droplet" | sudo tee -a /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment