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() | ||||
|     { | ||||
|         $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'); | ||||
|     } | ||||
| } | ||||
|  |  | |||
|  | @ -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" | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue