chore
This commit is contained in:
		
							parent
							
								
									c4922ad1d4
								
							
						
					
					
						commit
						5883686003
					
				@ -1,4 +1,5 @@
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def ngrok_connect():
 | 
			
		||||
@ -6,5 +7,5 @@ def ngrok_connect():
 | 
			
		||||
 | 
			
		||||
    conf.set_default(conf.PyngrokConfig(ngrok_path="./ngrok"))
 | 
			
		||||
    ngrok.set_auth_token(os.environ["ngrok_token"])
 | 
			
		||||
    http_tunnel = ngrok.connect(8000)
 | 
			
		||||
    http_tunnel = ngrok.connect(8000 if len(sys.argv) == 1 else int(sys.argv[1]))
 | 
			
		||||
    print(http_tunnel.public_url)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user