#100DaysOfWeb in Python Transcripts
Chapter: Days 89-92: Deploying Python web apps to Linux
Lecture: Creating our virtual server

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Here we are, logged in to DigitalOcean and like I said, the process is going to be really similar regardless of which host you choose.
0:09 So, I've created a project called 100 Days Web and we're going to create a virtual machine in here. In DigitalOcean parlance nomenclature
0:17 they call these droplets. So we'll go over here and say, Create a Droplet we'll come down here and we're going to pick our distribution
0:22 and you also have things like one-click apps if you want to, say, set up a disk or server or something. We're just going to do this.
0:28 You also have containers but we're not doing containers we're just going to do straight deploy. We're going to pick the Ubuntu
0:34 the latest Ubuntu with long term support. That's 18.04 at the moment. So, we're going to pick that and then we go down here
0:40 and we pick the size. It defaults to this, but unless you have a whole lot of traffic you don't need this. You could run, I believe on this one
0:48 certainly on this one, you could run a website backed with Pyramid that does millions of requests per month. To the data back end.
0:55 Not all the CSS and whatnot. Totally fine on either of these. Alright, we're going to pick this one just to get started.
1:01 Actually I'll go ahead and pick this one. You choose which mix-in's for you. Give more CPU oriented stuff, and if you're
1:06 database server you can pick one of these but we're not doing that. Don't need back-ups, don't need extra cloud.
1:11 I'm going to pick the data center closest to me. That's not what I would pick if I was actually deploying this for production.
1:17 All of my stuff lives in New York. Why New York? Well, most of my customers are U.S., or European, based. And East Coast of the United States
1:27 felt like a good compromise. 'Course you can do multiple servers and multiple regions. If you turn on monitoring you get cool graphs
1:32 about what your server's up to. And then we're going to check off our SSH keys. A few of you probably don't have one of these.
1:39 And so you click here and create a new one or upload a new one. If you don't know how to create SSH keys
1:44 just Google Create SSH Key, your operating system and follow along. So I checked off an SSH key and here we're going to
1:52 choose a host name, so we'll just call this Bill Tracker Web. You can call it whatever you want. We could add tags. We don't need to.
1:58 It's going to go into this 100 Days project. Whoo, ready to go. We can create a bunch. Don't think we need to. I think one is good enough.
2:04 Alright, double check you got all the stuff that you're hoping for here, and click Create. Now, during this process, I won't speed up the video
2:12 of course, sometimes, during like, dev install and stuff we've been speeding up the video, but here I'm just going to show you how quick this goes.
2:20 Alright so here it is, setting up. It's creating the machine. Getting everything configured. Copying it over. Assigning an IP address.
2:29 Starting it up. We're almost there. Usually takes about 20 to 30 seconds. Final stretch, here it comes. Boom, done! We have our server.
2:47 We have our Linux virtual machine set up. From now on, whatever we're going to do is the same across all these different providers.
2:53 Once we go over here and copy this we'll be able to connect over SSH and it'll just be straight Ubuntu from here on out.

Talk Python's Mastodon Michael Kennedy's Mastodon