udpate horizon service

This commit is contained in:
Kai Ton 2024-02-22 07:18:34 +00:00
parent 97d7310dfe
commit fa890743f3
3 changed files with 7 additions and 13 deletions

2
src/.horizon/horizon.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
php /app/artisan horizon &

View File

@ -33,16 +33,6 @@ class ProcessJob implements ShouldQueue
*/ */
public function handle() public function handle()
{ {
$client = new \WebSocket\Client("ws://192.168.56.101:2346/"); var_dump('hello world');
$client->text(
json_encode([
'username' => 'kai.1',
])
);
$client->text(
$this->process . ': ' . rand()
);
$client->receive();
$client->close();
} }
} }

View File

@ -2,10 +2,12 @@
php -v php -v
# COMPOSER # COMPOSER
if [ ! -d "/app/vender" ] if [ ! -d "/app/vendor" ]
then then
composer install composer install
fi fi
# PERSSION
# HORIZON
sh /app/.horizon/horizon.sh
php /app/artisan serve --host "0.0.0.0" php /app/artisan serve --host "0.0.0.0"