瀏覽代碼
			
			chore: add dev scripts to start api and worker service with uv run (#19633)
			
			tags/1.4.0
		 
		
			
				
					
						 Bowen Liang
					
					5 月之前
						Bowen Liang
					
					5 月之前
				 
				
			 
		 
		
			
				
				  
				  No account linked to committer's email address
				
			
		
		
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
	
		
			
			|  |  | @@ -0,0 +1,10 @@ | 
		
	
		
			
			|  |  |  | #!/bin/bash | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | set -x | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | SCRIPT_DIR="$(dirname "$(realpath "$0")")" | 
		
	
		
			
			|  |  |  | cd "$SCRIPT_DIR/.." | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | uv --directory api run \ | 
		
	
		
			
			|  |  |  | flask run --host 0.0.0.0 --port=5001 --debug | 
		
	
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
	
		
			
			|  |  | @@ -0,0 +1,11 @@ | 
		
	
		
			
			|  |  |  | #!/bin/bash | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | set -x | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | SCRIPT_DIR="$(dirname "$(realpath "$0")")" | 
		
	
		
			
			|  |  |  | cd "$SCRIPT_DIR/.." | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | uv --directory api run \ | 
		
	
		
			
			|  |  |  | celery -A app.celery worker \ | 
		
	
		
			
			|  |  |  | -P gevent -c 1 --loglevel INFO -Q dataset,generation,mail,ops_trace,app_deletion |