Full Web Apps with FastAPI 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 I wanna say ssh root@ that address.
0:03 Obviously, you'd probably put some kind of domain name there.
0:06 But first time it'll 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'll take. 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. When you already
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 Not always the case when you apply updates that that's true.
1:25 But when do a kernel upgrade or major things,
1:28 it is. So we'll just have to 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 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.