mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:07:33 -05:00 
			
		
		
		
	Made sure to restart the queue as part of the post-update procedure
This commit is contained in:
		
							parent
							
								
									9d9efca633
								
							
						
					
					
						commit
						33fe019df0
					
				@ -56,7 +56,7 @@ class PostUpdate extends Command
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        exec('vendor/bin/composer install --no-dev -o', $output);
 | 
					        exec('vendor/bin/composer install --no-dev -o', $output);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        info(print_r($output,1));        
 | 
					        info(print_r($output,1));
 | 
				
			||||||
        info("finished running composer install ");
 | 
					        info("finished running composer install ");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
@ -75,9 +75,17 @@ class PostUpdate extends Command
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        info("view cleared");
 | 
					        info("view cleared");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        try {
 | 
				
			||||||
 | 
					            Artisan::call('queue:restart');
 | 
				
			||||||
 | 
					        } catch (\Exception $e) {
 | 
				
			||||||
 | 
					            info("I wasn't able to restart the queue.");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        info("queue restarted");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        VersionCheck::dispatch();
 | 
					        VersionCheck::dispatch();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        info("Sent for version check");
 | 
					        info("Sent for version check");
 | 
				
			||||||
        
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user