Sign Up and Connect GitHub 0:00Let's go ahead and dive in. I will sign up for Laravel Forge. Now, I will go ahead and fill out this form, so that you don't have to watch me. Okay, so I've signed up and we're in. The first step is we want to connect to either GitHub or Bitbucket. In my case, I prefer GitHub. Okay, I've approved that, so that part is set up. Next, we need to reference our service provider. Now, don't forget that Laravel Forge isn't providing the servers, it's the UI layer on top of it to simplify all of these tasks. So, that means you will be expected to sign up for one of these various services, and all four are fantastic. In my case, I happen to like DigitalOcean. It's very simple, very easy to use. Now, I happen to have a demo account set up, but if you don't, you can sign up in a matter of 30 seconds or so. Now, I've already set up my billing information, but if you are working along, be sure to enter your credit card information or you can use PayPal. Link DigitalOcean via API 0:45you can sign up in a matter of 30 seconds or so. Now, I've already set up my billing information, but if you are working along, be sure to enter your credit card information or you can use PayPal. Okay, we don't have to do too much right now. Forge helps with almost all of this, but what we do need is our API key. So, let's generate a new key. As always, don't try to use this key. I'm going to delete it as soon as the videos are finished. So, I need my client ID, and I will also need my API key. All right, let's connect. All right, so we're in. We can now whip up our first server. All right, so go ahead and give it a name. Choose a server size. If you're just building something small, nothing too crazy, then you know what? You can stick with the $5 a month plan. So, that means between DigitalOcean and Laravel Forge, we're talking $15 a month for a huge amount of flexibility. Pretty darn cheap. But if you need something more, then feel free Create and Provision Server 1:31month plan. So, that means between DigitalOcean and Laravel Forge, we're talking $15 a month for a huge amount of flexibility. Pretty darn cheap. But if you need something more, then feel free to upgrade, or after the fact, you can always log into DigitalOcean and upgrade. For example, at Laracast right now, I use 4 gigs of RAM and 2 CPU cores. Anyhow, let's just stick with the basics. I will keep this database name. We could install HHVM if we want, and if you're not familiar with that, think of it as sort of a replacement for PHP. It's still somewhat buggy, so I'm not going to worry about that. Let's create the server and give that just a couple minutes to both install and provision. And we can see right here, all of this stuff is in real time, so it will notify us when it's finished building. All right, so I've given that a moment, and we can see all of the real-time events that occurred. Let's go ahead and manage it. So, now we have a new server, Configure Site and Deployment 2:17when it's finished building. All right, so I've given that a moment, and we can see all of the real-time events that occurred. Let's go ahead and manage it. So, now we have a new server, but don't equate website with server. If you wanted to, you could have multiple websites on the same domain. And to do that, for each one, just give it a domain name, set your document route, and you're done. Then, for each one, you can manage each individual site, set your environment variables, boot up some workers, install an SSL certificate, all of that stuff. Now, though, we have our new site. Let's go back to repository. Now, the basic process you'll take is, whenever you push some changes up to GitHub, you can then either, one, SSH into your server and simply run a Git pull, or you could, if you want, configure a quick deployment. And that can be really helpful in some cases. Now, like we did in the previous lesson, just so we have something tosimply run a Git pull, or you could, if you want, configure a quick deployment. And that can be really helpful in some cases. Now, like we did in the previous lesson, just so we have something to work with, imagine that we are working on this project here. So, let's go ahead and clone that. We want the master branch, and we do want to run a composer install and an artisan migrate. So, let's go ahead and run that, and it should take just a minute or so. Now, while we are waiting for that, why don't we go ahead and clone this ourselves? Git clone, and we will call this ForgeDemo. All right, cd into that, and now we have our local copy here. Now, if I switch back, there we go, it's installed. So, let's go ahead and enable quick deploy, like we talked about, and if we edit the deploy script, yeah, all of that should be fine. So, to finish up this lesson, let's view the current site, make a change, and then see it reflected immediately. Here's our task app, and now, just Push Changes and Deploy 3:50deploy script, yeah, all of that should be fine. So, to finish up this lesson, let's view the current site, make a change, and then see it reflected immediately. Here's our task app, and now, just for an example to use, let's change this to current tasks. So, I will open this up within an editor, and I believe for this we want tasks index.blade.php. All right, so there we go. Change it to anything, really. How about current tasks? Exit out. We've made a change. So, if I run git status, git add everything, git commit with change copy, and finally, let's push back to GitHub. Git push, and if we give that a second, switch back, there we go, here's our commit, and if we switch over, that should now take effect, or if you ever need to manually deploy, like I said, you could SSH into the server, or just click the deploy now button, and here at the top, you can see that it's currently deploying. So, if we now switch back, sure enough, our changes have been reflected,could SSH into the server, or just click the deploy now button, and here at the top, you can see that it's currently deploying. So, if we now switch back, sure enough, our changes have been reflected, and we are starting to figure out a good workflow when using something like Forge.