From 73827f56cae4e4af51d6e662f9db3ee0774d0aaf Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Mon, 11 Dec 2023 08:39:45 +0100 Subject: [PATCH] pulse worker --- app/Recipes/Laravel/Containers/Pulse.php | 18 ++++++++++++++++++ app/Recipes/Laravel/LaravelRecipe.php | 9 +++++++++ storage/app/env/Laravel | 8 ++++++++ 3 files changed, 35 insertions(+) create mode 100644 app/Recipes/Laravel/Containers/Pulse.php diff --git a/app/Recipes/Laravel/Containers/Pulse.php b/app/Recipes/Laravel/Containers/Pulse.php new file mode 100644 index 0000000..1b36dab --- /dev/null +++ b/app/Recipes/Laravel/Containers/Pulse.php @@ -0,0 +1,18 @@ +set_target('pulse'); + } +} diff --git a/app/Recipes/Laravel/LaravelRecipe.php b/app/Recipes/Laravel/LaravelRecipe.php index aefe45b..7d2bccb 100644 --- a/app/Recipes/Laravel/LaravelRecipe.php +++ b/app/Recipes/Laravel/LaravelRecipe.php @@ -32,6 +32,7 @@ use App\Recipes\Laravel\Commands\Watch; use App\Containers\Php; use App\Recipes\Laravel\Containers\Dusk; +use App\Recipes\Laravel\Containers\Pulse; use App\Recipes\Laravel\Containers\Scheduler; use App\Recipes\Laravel\Containers\Websocket; use App\Recipes\Laravel\Containers\Worker; @@ -251,6 +252,14 @@ public function build() $dusk->set_link($nginx->service_name(), env('HOST')); } + + + if(!empty(env('ENABLE_PULSE'))){ + $this->add_container(Pulse::class) + ->add_network($this->internal_network()) + ->depends_on('mysql') + ->depends_on('redis'); + } } private function build_php(): Php diff --git a/storage/app/env/Laravel b/storage/app/env/Laravel index ef98b49..d5c4e3b 100644 --- a/storage/app/env/Laravel +++ b/storage/app/env/Laravel @@ -83,4 +83,12 @@ WEBSOCKET_PORT= ####################### # Browser Tests # ####################### + ENABLE_BROWSER_TESTS= + + +####################### +# Pulse Server Checks # +####################### + +ENABLE_PULSE=