#100DaysOfWeb in Python Transcripts
Chapter: Days 89-92: Deploying Python web apps to Linux
Lecture: Where to host our server
0:00 The first thing we need to do before we can set up our server is to create it. And, maybe even before then is to decide where and how to host it.
0:09 I'll give you three solid options. There are many many ways to host our Python web app and what we're going to do is create a Linux virtual machine.
0:18 When we create this Linux virtual machine beyond that point, it's all the same. It's just down to which host are we going to create it on.
0:25 I'll recommend three for you all. So the first one, and the one we're going to use is Digital Ocean.
0:30 So Digital Ocean has great support for running your code your web apps, everything on Linux virtual machines and the pricing is just ridiculous.
0:40 So I feel like Digital Ocean has really been driving the pricing that the other folks are also following. I'll give you some examples.
0:47 So for example over here, we can create a decent server with one CPU and 1 Gig of RAM that's actually plenty
0:54 and a terabyte of traffic, which if you were to just pay straight for that through Azure or AWS S3, that's $93 worth of bandwidth right there
1:03 and you pay for all of this, five dollars a month. It's pretty awesome. For my servers I'm running them more on these or maybe even these
1:11 but that's just mostly for a little extra traffic but you could totally run, you know a serious website right on that.
1:18 Okay, so we're going to go over here and use Digital Ocean but another solid, solid recommendation that I really like is Linode.
1:24 Linode is very similar to Digital Ocean in its positioning. Great Linux virtual machines. They all have SSD's, plenty of ram
1:32 plenty of network, and so on. You probably have heard of Amazon Web Services but maybe you have not heard of Amazon Lightsail.
1:38 So Amazon Lightsail is AWS's answer to Digital Ocean and Linode. If you go and just create an EC2 machine that's way way more expensive
1:47 it comes with no bandwidth and so on but as you can see over here oh look, on AWS Lightsail you get an EC2 backed Linux virtual machine
1:56 with the same amount of traffic and all that. Basically, you know, you just look at the same there you go, you get the same amount of transfer
2:03 all that kind of stuff on Amazon's hardware so this is also a really good option. So these are three really solid options
2:09 for creating Linux virtual machines. Maybe you would have one for your web app and one for the database, things like this.
2:15 So probably a couple in practice, we're going to use one.