So we're now at the point where we can deploy our application to a live server and there are many,
many ways to do that and there are many places to do that.
One of the most popular ones is Digital Ocean, which you see right on the screen in front of you.
And it has some good pricing and they have lots of functionality and a lot of people use them.
And I used to use them all the time.
Another popular one is Vulture Dotcom VLT, our dotcom, which has slightly better pricing than digital
ocean, at least at the time that I record this.
And it works very well and I've used that as well.
And the third one is Lynard, which I often call Lynard for reasons I'll never understand, but it's
pronounced Lynard and that's the one I'm currently using and it works really, really well.
And I'm logged into it already.
So I'm going to use lineout.
But the process for deploying to a server is almost exactly the same, regardless as to which service
you use.
So I have four existing Linowitz, but I'm going to create a new one.
So this is they just call their servers Linowitz.
So I'm going to create one and I really like Ubuntu, so I'm going to choose the latest version of Ubuntu,
the long term service one Elz Ubuntu twenty point zero point or twenty point zero for Altius.
So I'll choose that and you can put it anywhere you want.
And I'm in Canada, so I'm going to put it in Toronto.
I'm not in Toronto, but I am in Canada and I'm going to choose something that's relatively straightforward.
I'll choose the two gigabit, two gigabytes of memory with 50 gigs of storage for ten dollars a month.
You can use five dollars a month and it will work just fine.
And actually, if you look around, you'll probably find some some promo codes that give you a bit of
free usage so you can actually try this and not spend any real money if you want, if Leno doesn't have
it.
Chances are Digital Ocean does, but somebody's always got a promotion going on.
So just search for a promo code before you sign up.
But I'll choose the two gigabit one with a shared CPU, honestly, and production.
You want to use dedicated CPU, but for the purposes of this lecture, shared is sufficient for our
purposes.
Then I'll give it a name and I'll just call it temp server.
You can call it whatever you want and I'm not going to give it a tag.
And you can choose a password to for a root password which will be sent to you and you'll have access
to your server that way.
I'm actually using a SHC, which I've put in beforehand because I don't like using I don't like giving
access to the root account from a password.
I use SSA keys, but you can just Google how to do that if you want to.
And I won't specify anything, anything else.
So I'll create that and wait for it to be created.
I got to give it a something here, a root password when deploying from an image.
OK, so I have to give it a password.
All right, let's try that.
This is a temporary one.
So I'm using a very short password and it is being provisioned.
So we'll wait for that to happen and then we'll log in.
All right.
It appears to be running.
So what I'm going to do now is copy the IP address for this server, open a terminal window and connect.
So I will go S.H. route that and paste in the IP address and I'll accept the fingerprint for the certificate.
Yes.
And I'm in.
So the very first thing I'm going to do is update the the server.
I will apt update and it goes and gets the latest versions for all the packages.
And it will tell me that ninety five packages can be upgraded, so I will go app upgrade.
If you're not doing this as a pseudo user, then as a user, then you have to put sudo in front of it.
So, yes, update all those packages.
So we'll let it do its update.
And there it's finished its update, so now actually I need to reboot the server, but I'm not going
to do that until I'm finished.
So we have this server running and right now it's running very, very little software.
And we needed to have certain things in order to be able to run our application.
The most obvious thing we need is we have to have a copy of postscripts.
So let's search for Prospero's and install it apt search postgrads and that will search to see what
packages are available.
And if I scroll up a little bit, let's see.
We should have the postgrads server.
So over to P0, they're in alphabetical order, so I'll just keep scrolling up postgrads.
Database, Kluster Postgres client postgrads 12, postgrads 12, Snake Oil Postgrads.
I think it's just postgrads.
Q Well, but I want to be sure.
There it is, so this is what I want, postgrads QOL 12, I'll copy that, go back down at the end here.
Clear my screen Apte install.
And yes, I do want to install it, so hit return one, install that.
So let's see if that worked service Postgres status.
And it appears to be running good.
OK, so postgrads is running, so we have that ready to go.
So we need postgrads.
We also need a Web server.
And I'm going to show you a couple.
One that's very popular is Ingenix, which is spelled Ndeye Anex.
And it works really well.
And it's not difficult to set up.
And it's there's no reason why you shouldn't use it.
But one that I really like is called Cadie Server, and that's the one I'm going to use.
So Katti Server is a Web server written engo, and it's extremely easy to configure.
It's very, very high performance.
And one of the great advantages it has is that it automatically manages SSL certificates for me, free
SSL certificates from a service called Let's Encrypt, and this is the one I'm going to use.
So to download this, I'm going to click download and we actually don't want to do it.
We want to use let's see here.
So documentation getting started somewhere in here and downloads try that one.
Static binaries.
No, doctor, no.
This is what I want to do.
Instead, I want to install it using the Apte tool that's built into my particular package.
So I will copy this.
The first line, which is actually split on the two and I will paste it into my terminal window.
OK, then I'll do the second one pseudo Apte update, which I can do.
I can just type Apte update because I'm route.
And the last command is to install Cadie Apte, install Cati.
Perfect, so now I have my database installed, I have Cadie installed, there's one more thing I want
Apte install supervisor and that's the package I'm going to use to manage my my Web application.
It's the one that will start and stop and keep going.
My goal binary, which will get up there in the next lecture or two.
So let's just install that now and we'll be ready to go.
So I have my database, I have my Web server, I have my service that will keep my Web application running,
which is supervisor.
So in the next lecture, we'll actually get our project up there and see if we can get it running.