[00:01] Forge in action, especially newer version, this will be a 4-minute clip version, this will be a 4-minute clip from my longer video about API from real Upwork job that I posted another clip yesterday on this channel. So, this [00:13] 24-minute video and in this case, I decided to just demonstrate to you how Laravel Forge works, at least for me, and how I deployed project to a server, which is Laravel VPS, which is inside of Forge. So, I didn't have to buy any [00:28] Digital Ocean or anything. So, how does that work? Let me demonstrate. And now, I will try to submit that API to RapidAPI. I'm shooting that the next morning and to add API project, these are the fields and we need to upload [00:42] open API or Postman collection with JSON or other format, but from live URL already because the links in the JSON in the documentation cannot be dot test from local. So, for that, I will deploy the project to somewhere and that [00:58] somewhere I will demonstrate with Laravel Forge. I have one of the servers just to play around for native PHP demos, but I can use the same server to create a new site. I already have the GitHub repository here with API [01:12] uploaded, pushed, and let's create new site, Laravel, and deploy to Laravel Forge. This will be also demonstration of Forge in action. I need to choose the repository and I choose the text cleaner RapidAPI branch main. Connect to [01:27] database. We don't need the database for this particular project and it suggests this particular project and it suggests the Forge domain with dot on-forge.com, which I'm happy with it. It's a demo project. I don't really need any real [01:40] domain. I will just remove that at the end to be more readable and install composer. Okay, create site. And it will actually try to deploy it automatically, but sometimes it fails the first time because it's still in progress and [01:55] sometimes, for example, tries to migrate the database where I don't need the database. So, we'll see what happens. In roughly a minute or so, it should be ready. And it's building front-end assets in this case, but we don't really [02:07] need front-end assets, but it comes with Laravel by default. And as I said, Forge was unable to push deploy, but we can click deploy manually and I will show you what actually happens. What's the deployment script? So, you can see [02:23] composer install and will it succeed at the end? So, it's running composer install, migrations, nothing to migrate, and there's something with NPM. But actually, it proceeded later and says deployment complete. So, when deployment [02:38] complete, it was with errors, but still we can try to visit the page. And yeah, I see Laravel 13 successfully deployed. And what we need here is docs API from what I remember the URL. Forbidden, of course, because we need to [02:54] change the dot ENV file. So, let's see how Forge handles that. I will show you. So, settings, then environment, and then you have dot ENV, which you may edit however you want. But actually, let's leave that here as production and I will [03:09] leave that here as production and I will probably change the code logic when that docs API is forbidden or not. So, here we have config scramble again, restricted docs access, which is in vendor. So, I cannot edit that [03:23] middleware, but I can comment it out. And now, if I commit the deploy to Forge. You can do that automatically, enable the automatic deployment. Actually, see issue and let's dismiss that notification. And [03:39] now, we can go to setting deployments and here's the actual deployment script. And in our deployment script, actually, we don't need migrate force because we don't use database. We don't need NPM anything. We don't need storage link [03:52] actually because we don't work with storage. Everything else, let's keep it and hit save. And now, we can click deploy again and it will get the changes from Git and deploy it with zero downtime. By the way, deployment [04:08] recently in Forge, they released that for new servers. So, your actual users deployment complete. It's faster because it's not compiling the NPM anymore. And [04:21] if we refresh the page now, it should be not forbidden anymore. Great. Let me zoom that in so you would see. So, we have live documentation with the live URLs here. Great. So, now let's upload that JSON. We have docs API [04:38] dot JSON from what I remember. And this is exactly what we need to put into RapidAPI. So, I will save that as a JSON file, API V1, for example, dot JSON. And [04:51] now, I go to RapidAPI studio and add API project. So, yeah, that was a quick think about this process? And in general, are you a user of Forge or have you tried and maybe were disappointed by something? Let's discuss Laravel Forge [05:06] as usual in the comments below. And again, the full video, 24 minutes, if you want to watch it for premium members of Laravel Daily. That's it for this of Laravel Daily. That's it for this time and see you guys in other videos.