udpate horizon service
This commit is contained in:
		
							parent
							
								
									97d7310dfe
								
							
						
					
					
						commit
						fa890743f3
					
				|  | @ -0,0 +1,2 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | php /app/artisan horizon & | ||||||
|  | @ -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(); |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -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" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue