From fa890743f34692cb38185469bc9fe732b6ab6fe9 Mon Sep 17 00:00:00 2001 From: "kai.t" Date: Thu, 22 Feb 2024 07:18:34 +0000 Subject: [PATCH] udpate horizon service --- src/.horizon/horizon.sh | 2 ++ src/app/Jobs/ProcessJob.php | 12 +----------- src/laravel-entrypoint.sh | 6 ++++-- 3 files changed, 7 insertions(+), 13 deletions(-) create mode 100644 src/.horizon/horizon.sh diff --git a/src/.horizon/horizon.sh b/src/.horizon/horizon.sh new file mode 100644 index 0000000..69cfad8 --- /dev/null +++ b/src/.horizon/horizon.sh @@ -0,0 +1,2 @@ +#!/bin/sh +php /app/artisan horizon & diff --git a/src/app/Jobs/ProcessJob.php b/src/app/Jobs/ProcessJob.php index c8e1b17..b804cce 100644 --- a/src/app/Jobs/ProcessJob.php +++ b/src/app/Jobs/ProcessJob.php @@ -33,16 +33,6 @@ class ProcessJob implements ShouldQueue */ public function handle() { - $client = new \WebSocket\Client("ws://192.168.56.101:2346/"); - $client->text( - json_encode([ - 'username' => 'kai.1', - ]) - ); - $client->text( - $this->process . ': ' . rand() - ); - $client->receive(); - $client->close(); + var_dump('hello world'); } } diff --git a/src/laravel-entrypoint.sh b/src/laravel-entrypoint.sh index 665f403..a0d3ccf 100755 --- a/src/laravel-entrypoint.sh +++ b/src/laravel-entrypoint.sh @@ -2,10 +2,12 @@ php -v # COMPOSER -if [ ! -d "/app/vender" ] +if [ ! -d "/app/vendor" ] then composer install fi -# PERSSION + +# HORIZON +sh /app/.horizon/horizon.sh php /app/artisan serve --host "0.0.0.0"