Introducing Laravel Octane 0:00Laravel Octane is a package that supercharges our application's performance by serving it using a different kind of server. Octane is compatible with OpenSWL, SWL, and Roadrunner. It works by booting our application once, keeping the entire thing in memory, and then feeding it requests at supersonic speeds. And of course, Forge supports Laravel Octane. Octane can only be enabled when creating a new site. So we're going to go ahead and give it the same old domain, zonda.quest, and we're going to select a different type of project. This time, we're going to select Laravel Octane. Creating an Octane Site 0:33to select a different type of project. This time, we're going to select Laravel Octane. Unlike other project types, Octane will not use PHP FPM. Instead, Octane starts its own server, Roadrunner or SWL, and uses Nginx as a reverse proxy to forward requests to it. When we select Octane, we'll see that we need to also provide a port. It's wise to use a high number, such as 8,000, as to prevent clashes with other software that may be running on our servers. At this point, everything else can stay the same, and we can create our site. With our site created, we need to install our repository. Reviewing Octane Deploy Script 1:02At this point, everything else can stay the same, and we can create our site. With our site created, we need to install our repository. Forge is slightly different for Octane-powered projects. If we scroll through, we can see that the deploy script is slightly modified. Instead of reloading PHP FPM, we're going to reload the Octane service. A little further down, we can see that we have a Laravel Octane panel containing some further instructions. This is because we need to run a couple more things to get Octane running. The first thing we need to do is create an Octane server environment variable and tell Octane which server it is that we want to use. Configuring Env and Daemon 1:41The first thing we need to do is create an Octane server environment variable and tell Octane which server it is that we want to use. Let's copy this and go to the environment panel, and we will use Roadrunner. And now head back to the Laravel Octane panel, and the next thing we need to do is create a daemon. We'll copy this command and go to the daemon panel and create the new command. We'll paste that in and tell it that we want to run this command in our site's directory. And then everything else can remain as it is by default. Let's create the daemon. And if we now switch to our site and reload this, then we will see our application is Verifying Octane Deployment 2:24Let's create the daemon. And if we now switch to our site and reload this, then we will see our application is being served by Octane. We can confirm that this is working by going back to our site, and we'll see this little Octane icon. We can click into our site and click in the deploy now button. We can then check that Octane has reloaded by going to view latest deployment log. And if we scroll down, we will see the Octane server is currently running, that's the status part of our deploy script, and then we're reloading the workers.part of our deploy script, and then we're reloading the workers.