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()
{
$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');
}
}

View File

@ -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"