Modern APIs with FastAPI and Python Transcripts
Chapter: Deploying FastAPI on Linux with gunicorn and nginx
Lecture: Connecting to and patching our server

Login or purchase this course to watch this video and the rest of the course contents.
0:00 And we're going to say "ssh route at that address".
0:03 Obviously, you would probably put some kind of domain name there,
0:06 but first time it will say you have never been here,
0:08 are you sure you want to exchange your ssh keys with them?
0:11 Yes. And just like that,
0:13 we're in. So the very first time you see,
0:16 like, this warning and whatnot and it says,
0:18 "you know you really should do apt update and then apt upgrade".
0:22 This is check for updates, apt update,
0:26 and then apt upgrade is apply those updates.
0:29 And if you've ever put anything on the Internet,
0:31 you want to know, you know that you need to patch it right away. Like
0:36 here, if we log out and then log back in, notice
0:39 it has 18 security problems. That's not good.
0:44 So let's go and just upgrade it right now.
0:47 Oh, and I believe it's like checking for its own updates the first time it
0:51 came to life, so let's see how long this takes. Here we go.
0:57 It was still doing like some background stuff with the upgrade system.
1:01 Alright, so it should be up to date or ready to update and whenever you
1:04 see these Linux headers, that means there's a new kernel upgrade as well.
1:12 Okay, that took a moment because there's an insane number of updates to apply,
1:16 but no big deal. Now,
1:18 if we log out and just log back in,
1:20 you'll see that a system restart is required.
1:23 It's not always the case when you apply updates that that's true,
1:25 but when you do a kernel upgrade or major things,
1:28 it is. So we'll just type "reboot",
1:30 wait about 5 to 10 seconds,
1:32 and our machine should be completely up and running and ready for us to configure as
1:37 our Web server. Perfect. So here we have our Web server up and running.
1:42 It's not a Web server yet, it's gonna be made into one.
1:44 But we have our Linux server running on the Internet safely because we've applied the patches.
1:49 We still need to do things like set up firewall rules and other types of
1:54 stuff to make it more safe.
1:55 But it's a good thing to have here running that we can start working with and
2:00 configuring, and we'll do that throughout this chapter.