[0:00] larl Forge is one of the easiest ways to [0:02] deploy your larl application to your [0:03] server while larl Horizon is one of the [0:06] easiest ways to monitor your cues but [0:08] how easy is it to use Lille Horizon and [0:11] Lille Forge together why don't we take a [0:14] look I've already created and scaffolded [0:16] out lville application with Lille Breeze [0:19] and lville Horizon installed that's in [0:21] my GitHub repository and then I have a [0:23] server in my laravel Forge account in [0:27] that server I have a site with that g [0:30] repository already set up so you already [0:32] have an application on lville Forge you [0:34] have lville Horizon installed on that [0:35] application what's the steps to make [0:38] sure that Horizon is actually running on [0:40] Lille Forge well it's a little tricky we [0:43] have this lville Horizon switch right [0:46] here and I'm just going to turn that [0:51] on [0:53] and that's [0:57] it okay but there are some things that [0:59] actually happen behind the scenes and if [1:01] you wanted to set this up manually how [1:03] would you do that well the first thing [1:05] that happens is in our deployment we [1:07] need to make sure that we have Forge [1:09] Artisan Horizon terminate in our [1:12] deployment script this is just telling [1:14] Lille Forge that anytime we redeploy [1:17] something in this case I have quick [1:18] deploy enabled with my GitHub repository [1:21] we're just going to restart lville [1:23] Horizon next turning on that switch [1:26] started an active Damon on our server to [1:28] run Horizon and just to make sure [1:31] everything's working we'll go ahead and [1:32] go to Horizon there we go everything's [1:36] installed everything's running behind [1:38] the scenes and no other setup is needed [1:40] if you're wanting to have lville Horizon [1:42] Lille Forge running on the same server [1:45] now one more thing to know is Horizon [1:46] does include a metrics dashboard which [1:49] provides information regarding your job [1:51] and Q times and you have to make sure [1:53] that that Horizon snapshot command is [1:55] actually located and actually running in [1:58] your application so first you just make [2:00] sure that this is in your routes console [2:03] file so in your server you go ahead and [2:05] go to your scheduler Tab and in here [2:07] you'll create a new schedule job with [2:09] the command to run Artisan schedule run [2:12] in your site folder so this would be [2:15] maybe default or whatever your site is [2:17] named Forge and then whenever you would [2:19] like that scheduled command to be run or [2:22] since laral Forge also makes this part [2:24] incredibly easy as well you go into your [2:26] site and the site you want to enable [2:28] that scheduler to run [2:30] there's this simple Lille scheduler [2:32] switch right here we'll turn that [2:35] on and you can see it sets everything up [2:39] for us if I was to go back into our [2:41] scheduler we have that custom job ran [2:44] every minute right there and of course [2:47] you can edit that as need be lville [2:49] Horizon is incredibly simple to get up [2:51] and running on Lille Forge so that you [2:53] can easily monitor your cues while [2:55] deploying effortlessly [2:58] [Applause] [2:59] [Music]