forked from uncloud/uncloud
		
	Make uncloud host running
This commit is contained in:
		
					parent
					
						
							
								9662e02eb7
							
						
					
				
			
			
				commit
				
					
						e775570884
					
				
			
		
					 2 changed files with 19 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -590,11 +590,10 @@ def main(debug=False, port=None):
 | 
			
		|||
    #         json.dumps(data),
 | 
			
		||||
    #     )
 | 
			
		||||
 | 
			
		||||
    if port:
 | 
			
		||||
        app_port = port
 | 
			
		||||
 | 
			
		||||
    try:
 | 
			
		||||
        app.run(host="::", debug=False)
 | 
			
		||||
        app.run(host="::",
 | 
			
		||||
                port=port,
 | 
			
		||||
                debug=debug)
 | 
			
		||||
    except OSError as e:
 | 
			
		||||
        raise UncloudException("Failed to start Flask: {}".format(e))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue