Adding DigitalOcean Provider0:01
So in the previous video we created our first server using Laravel, new Laravel VPS server provider and we can use that, but you can also use all the classic server providers that were available in Forge before they introduced Laravel VPS. My favorite has always been Digital Ocean and it turns out they're actually who's powering Laravel VPS. So let's add Digital Ocean as a server provider
Laravel VPS. So let's add Digital Ocean as a server provider to our Forge account and then create our first server using them. So you wanna click on settings, server providers and add server provider. And from here you can pick who you wanna use as your server provider. So let's click on Digital Ocean and add Provider. As you can see, I'm already logged into
So let's click on Digital Ocean and add Provider. As you can see, I'm already logged into my digital Ocean account here. So if I click login with Digital Ocean, it'll automatically connect me there and allow me to authorize Laravel Forge to have access to it. So let's create a new server using our new server provider. At this point, this is gonna basically cover uh, content that we've already worked through in our how
Creating a New Server0:49
At this point, this is gonna basically cover uh, content that we've already worked through in our how to create a new Server with Laravel VPS video. So if you watch that already, you can just skip this one. But if you tune directly into this video, we're gonna walk through what it looks like to create a new server this time using Digital Ocean. So first you wanna name it, you can use one of the automatically default or default created names. Uh, but we did Oregon Trail staging last time,
of the automatically default or default created names. Uh, but we did Oregon Trail staging last time, so we'll do organ trail production this time for our provider. We're gonna choose my team, which is our digital lotion team. And then we've got all these D different options here. So for the type, if you recognize these, a web specific server load balancer, database server, these are probably tools that are useful to you.
a web specific server load balancer, database server, these are probably tools that are useful to you. If you don't recognize them, ignore them and just go for App server. These are just different configurations of the default Ubuntu image that we're getting outta the box. And they'll all have some things that all Laravel apps need. But for example, the database server is primarily focused on databases, not Nginx
But for example, the database server is primarily focused on databases, not Nginx configuration to serve your Laravel apps. So again, if you don't know what you're doing, go for an app server. Otherwise you can potentially, you know, create a whole network of these, which we'll talk about in a later video. So we're gonna choose app server. I am in East coast, so I'm gonna go for New York one.
Configuring Network and Size1:55
So we're gonna choose app server. I am in East coast, so I'm gonna go for New York one. Uh, you need to have a private network. Uh, by default you can just have one private network that you put all of them in. Uh, but this private network is what allows you to have different servers talk to each other. But even if you only have one server, you do need a network. So we're just gonna say add network and just call it my private network.
So we're just gonna say add network and just call it my private network. Uh, if you try to put spaces or anything, it'll squawk about invalid characters. All right. And then when you pick the server size, this server size is specific to the provider you have. So this is based on digital ocean specific billing information. So if you were to create something with Hener, you'd see different options here.
So if you were to create something with Hener, you'd see different options here. So we are gonna pick the cheapest server just 'cause we're just getting spun up. That's a 512 megabyte Ram, uh, simple entry level server for $4 a month. And we can also set our advanced settings. And so you will notice that these advanced settings are also different depending on your server provider. For example, a lot more options when it comes to databases
Reviewing Advanced Settings2:49
different depending on your server provider. For example, a lot more options when it comes to databases and server os than if you worked with Laravel VPS. So we've got two different versions of Ubuntu, quite a few different versions of PHP, quite a few different versions of your databases, different databases and different versions of each of the databases. And also some DigitalOcean specific toggles here that is enabling DigitalOcean's weekly backups.
And also some DigitalOcean specific toggles here that is enabling DigitalOcean's weekly backups. Also later, once we actually have a source control provider attached like GitHub, we will be able to say, when I spin up a new server, put the SSH key for that server directly in my source control, which would make it easier to have them talk back and forth. Right now that doesn't matter 'cause I don't have anything connected. And finally we say create Server.
Saving Credentials and Provisioning3:24
'cause I don't have anything connected. And finally we say create Server. Now unlike Laravel VPS where this takes a few seconds to spin up with all the other VPS providers, it is much more like your classic VPS where it's gonna take a while for this all to spin up. We are gonna get this popup, which is very valuable, where we're gonna get our pseudo password and our database password. In the previous video we pulled these outta those emails
and our database password. In the previous video we pulled these outta those emails that we got from Forge. When it says, Hey, we spun up a new server, here's this information and you will get it here. But when you get this modal, you can copy it directly and paste it into your password manager like one password. Or you can also download these credentials as a text file and you do wanna hang onto these. They're extremely valuable for you to have later.
and you do wanna hang onto these. They're extremely valuable for you to have later. Uh, and this is the only time you can get them in the forward user interface. Well imagine that I downloaded this as text file, I also know I'm getting it in an email form. And then I'll say, I have stored these credentials so this server is now provisioning and you're gonna see the steps that it takes for it to provision the server expand bit by bit down here.
and you're gonna see the steps that it takes for it to provision the server expand bit by bit down here. And these are all the different steps before we're actually gonna get access to our server. But some of the information we're gonna get early, now this is information that we should already know, right? This is ID number 1 46, it's an app server. But at some point, once we actually get the server spun up to a certain level, we're gonna get an IP address that's gonna pop up and then we start
to a certain level, we're gonna get an IP address that's gonna pop up and then we start getting further access. And at some point when it gets to the bottom, that's when you can actually do the rest of the work that you do on a server. You can start seeing all the um, the other things that show up in this page before that happens. You can start looking at these different pages here. Um, and one of the things I mentioned in the previous video
You can start looking at these different pages here. Um, and one of the things I mentioned in the previous video if you didn't tune in is that the majority of these tabs, these setting configurations, we're gonna work through these in later videos. So the really only thing that I want to note about the server is the overview page, which right now is just a timeline. So it's not useful for us and the settings page. So if we come over to the settings page,
So it's not useful for us and the settings page. So if we come over to the settings page, we can see some baseline information around our server that we can customize, we can change the name of it, we can change the SSH port and the IP address and private IP address. But the thing is you don't really wanna change these things. These are things that the server set up for you. And unless you're super hacky configuring things and setting up your own servers manually, I can't think
And unless you're super hacky configuring things and setting up your own servers manually, I can't think of a single reason why you'd actually wanna modify these. So for me, this page is more for information and then you've got organization, you can add notes and colors and tags and then also you can always get your forge public key down here, which, which is also super valuable. So this settings page gives you a few options. The rest of these again are
Post-Provision Server Overview5:46
So this settings page gives you a few options. The rest of these again are gonna be covered in later videos. And the only other thing we haven't covered about the server is that once this is done spinning up, we will see a little bit more. And so I'll just fast forward to that really quickly. Alright, and we are back. This has finished provisioning, let's see, it says created nine minutes ago.
This has finished provisioning, let's see, it says created nine minutes ago. So that's about how long it took to spin up. And this is the default dashboard that we're gonna get for our servers when we visit them. And there's not a lot going on because again, it's gonna be in later videos where we do the actual interesting stuff like creating a site and looking into our databases and background processes.
site and looking into our databases and background processes. So the vast majority of these things we're gonna cover in later videos. But I do wanna point out that we've got some interesting information over here. We've got the public IP address and private IP address. We've got some metadata about it. Uh, unlike Laravel VPS, we don't get metrics on these things.
Uh, unlike Laravel VPS, we don't get metrics on these things. We've gotta go over to Digital Ocean for that. And then down here we can see that by default it's gonna spin up a couple scheduled jobs for us to just clean up the general, um, server. And then down at the bottom we can see the items that have actually happened. Provisioning a new server, adding these scheduled jobs. And the settings page has a little bit more information now
Provisioning a new server, adding these scheduled jobs. And the settings page has a little bit more information now than it did before because we have our IP address and our private IP address and that's about it. Oh, and we also have the public key. Before we had forges public key, but now we also have a specific public key related to this server. And that's it. You got your first non Laravel VPS based server up and running using Forge.
And that's it. You got your first non Laravel VPS based server up and running using Forge.
