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"